Esempio n. 1
0
# -*- coding: utf-8 -*- 
from PlaceHoldMachine import PlaceHoldMachine

i = PlaceHoldMachine()
i.log_level = 2

dirs = [
	'C:/MyTemplate/images'
]

i.walk_recursive(dirs)
i.start()
Esempio n. 2
0
# -*- coding: utf-8 -*-
from PlaceHoldMachine import PlaceHoldMachine  #import class

i = PlaceHoldMachine()  #create class instance
i.log_level = 2  #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
    'C:/MyTemplate/images/demo', 'C:/MyTemplate/images/ads',
    'C:/MyTemplate/images/team'
]

i.disable_color_detection()  #disable primary color detection
i.set_primary_color((255, 0, 0))  #set background color to Red
i.set_contrast_color((0, 0, 0))  #set font color to Black

i.walk_recursive(dirs)  #recursively find all images in given directories
i.start()  #begin conversion process
Esempio n. 3
0
# -*- coding: utf-8 -*- 
from PlaceHoldMachine import PlaceHoldMachine #import class

i = PlaceHoldMachine() #create class instance
i.log_level = 2 #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
	'C:/MyTemplate/images/demo',
	'C:/MyTemplate/images/ads',
	'C:/MyTemplate/images/team'
]

i.disable_color_detection() #disable primary color detection
i.set_primary_color( (255, 0, 0) ) #set background color to Red
i.set_contrast_color( (0, 0, 0) ) #set font color to Black

i.walk_recursive(dirs) #recursively find all images in given directories
i.start() #begin conversion process
Esempio n. 4
0
# -*- coding: utf-8 -*-
from PlaceHoldMachine import PlaceHoldMachine  #import class

i = PlaceHoldMachine()  #create class instance
i.log_level = 2  #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
    'C:/MyTemplate/images/demo', 'C:/MyTemplate/images/ads',
    'C:/MyTemplate/images/team'
]

i.font_name = 'C:/Windows/fonts/Arial.ttf'  #Path to custom TrueType font
i.font_size = '15%'  #Custom font size, in percents
#i.font_size = 75 #Custom font size, in pixels

i.walk_recursive(dirs)  #recursively find all images in given directories
i.start()  #begin conversion process
Esempio n. 5
0
# -*- coding: utf-8 -*- 
from PlaceHoldMachine import PlaceHoldMachine #import class

i = PlaceHoldMachine() #create class instance
i.log_level = 2 #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
	'C:/MyTemplate/images/demo',
	'C:/MyTemplate/images/ads',
	'C:/MyTemplate/images/team'
]

i.quality = 10 # Very bad quality, low file sizes
#i.quality = 100 # Very good quality, big file sizes
#i.quality = 50 # Middle quality, middle file sizes

i.walk_recursive(dirs) #recursively find all images in given directories
i.start() #begin conversion process
Esempio n. 6
0
# -*- coding: utf-8 -*-
from PlaceHoldMachine import PlaceHoldMachine  #import class

i = PlaceHoldMachine()  #create class instance
i.log_level = 2  #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = ['D:/Others Project/placeholdermaker/phd']

i.emulate_csshopper_placeholder()  #emulate csshopper placeholder service
i.walk_recursive(dirs)  #recursively find all images in given directories
i.start()  #begin conversion process
# -*- coding: utf-8 -*-
from PlaceHoldMachine import PlaceHoldMachine  #import class

i = PlaceHoldMachine()  #create class instance
i.log_level = 2  #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
    'C:/MyTemplate/images/demo', 'C:/MyTemplate/images/ads',
    'C:/MyTemplate/images/team'
]

i.quality = 10  # Very bad quality, low file sizes
#i.quality = 100 # Very good quality, big file sizes
#i.quality = 50 # Middle quality, middle file sizes

i.walk_recursive(dirs)  #recursively find all images in given directories
i.start()  #begin conversion process
Esempio n. 8
0
# -*- coding: utf-8 -*- 
from PlaceHoldMachine import PlaceHoldMachine #import class

i = PlaceHoldMachine() #create class instance
i.log_level = 2 #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
	'C:/MyTemplate/images/demo',
	'C:/MyTemplate/images/ads',
	'C:/MyTemplate/images/team'
]

i.walk_recursive(dirs) #recursively find all images in given directories
i.start() #begin conversion process
Esempio n. 9
0
# -*- coding: utf-8 -*-
from PlaceHoldMachine import PlaceHoldMachine  # import class

i = PlaceHoldMachine()  # create class instance
i.log_level = 2  # set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = ["C:/MyTemplate/images/demo", "C:/MyTemplate/images/ads", "C:/MyTemplate/images/team"]

i.font_name = "C:/Windows/fonts/Arial.ttf"  # Path to custom TrueType font
i.font_size = "15%"  # Custom font size, in percents
# i.font_size = 75 #Custom font size, in pixels

i.walk_recursive(dirs)  # recursively find all images in given directories
i.start()  # begin conversion process
Esempio n. 10
0
# -*- coding: utf-8 -*-
from PlaceHoldMachine import PlaceHoldMachine

i = PlaceHoldMachine()
i.log_level = 2

dirs = ['C:/MyTemplate/images']

i.walk_recursive(dirs)
i.start()
Esempio n. 11
0
# -*- coding: utf-8 -*- 
from PlaceHoldMachine import PlaceHoldMachine #import class

i = PlaceHoldMachine() #create class instance
i.log_level = 2 #set log level to 2, so we can see errors

# set directories list, where all images will be replaced with placeholders
dirs = [
	'C:/MyTemplate/images/demo',
	'C:/MyTemplate/images/ads',
	'C:/MyTemplate/images/team'
]

i.emulate_placehold_it() #emulate placehold.it service
#i.emulate_csshopper_placeholder() #emulate csshopper placeholder service
#i.emulate_ubuntu() #emulate Ubuntu style
#i.emulate_ubuntu_orange() #emulate Ubuntu Orange style
#i.emulate_envato() #emulate Envato style
#i.emulate_facebook() #emulate Facebook style
#i.emulate_twitter() #emulate Twitter style
#i.emulate_default() #drop to default styling settings

i.walk_recursive(dirs) #recursively find all images in given directories
i.start() #begin conversion process