python - Thumbor installation not working -


i have followed wiki , set necessary, images broken right now. used aptitude package manager install.

here configuration files:

/etc/default/thumbor

 # set 0 disable thumbor, remove or set else enable # can temporarily override # sudo service thumbor start force=1 enabled=1  # location of configuration file conffile=/etc/thumbor.conf  # location of keyfile contains signing secret used in urls #keyfile=/etc/thumbor.key  # ip address bind to. defaults ip addresses # ip=127.0.0.1  # tcp port bind to. defaults port 8888. # multiple instances of thumbor can started putting several ports coma separeted # ex: # port=8888,8889,8890 # or port=8888 #default 

/etc/thumbor.conf

 #!/usr/bin/python # -*- coding: utf-8 -*-  # thumbor imaging service # https://github.com/globocom/thumbor/wiki  # licensed under mit license: # http://www.opensource.org/licenses/mit-license # copyright (c) 2011 globo.com timehome@corp.globo.com  # domains can have images resized # use empty list allow sources #allowed_sources = ['mydomain.com'] allowed_sources = ['admin.mj.dev', 'mj.dev', 'api.mj.dev', 's3.amazonaws.com']  # max width of resized image # use 0 no max width # if original image larger max_width x max_height, # proportionally resized max_width x max_height # max_width = 800  # max height of resized image # use 0 no max height # if original image larger max_width x max_height, # proportionally resized max_width x max_height # max_height = 600  # quality of generated image # option can vary between # imaging engines , works on jpeg images quality = 85  # enable options specify client-side cache in seconds max_age = 24 * 60 * 60  # client-side caching time temporary images (using queued detectors or after detection errors) max_age_temp_image = 0  # way images loaded loader = 'thumbor.loaders.http_loader'  # maximum size of source image in kbytes. # use 0 no limit. # important measure disencourage # large source images. # works http_loader. max_source_size = 0  # if set upload_enabled true, # route /upload enabled thumbor process # can put url store photo # using specified storage upload_enabled = false upload_photo_storage = 'thumbor.storages.file_storage' upload_put_allowed = false upload_delete_allowed = false  # how store loaded images don't have load # them again loader #storage = 'thumbor.storages.redis_storage' #storage = 'thumbor.storages.no_storage' storage = 'thumbor.storages.file_storage' #storage = 'thumbor.storages.mixed_storage' # root path of file storage file_storage_root_path = '/var/lib/thumbor/storage'  # if want cache results, use options specify how cache # set expiration seconds 0 if want them not expire. #result_storage = 'thumbor.result_storages.file_storage' #result_storage_expiration_seconds = 60 * 60 * 24 # 1 day #result_storage_file_storage_root_path = '/tmp/thumbor/result_storage'  result_storage_stores_unsafe=false  # stores crypto key in each image in storage # useful allow changing security key stores_crypto_key_for_each_image = true  #redis_storage_server_host = 'localhost' #redis_storage_server_port = 6379 #redis_storage_server_db = 0 #redis_storage_server_password = none  # imaging engine use process images #engine = 'thumbor.engines.graphicsmagick' #engine = 'thumbor.engines.pil' engine = 'thumbor.engines.opencv'  # detectors use find focal points in image # more detectors can found in thumbor's docs # @ https://github.com/globocom/thumbor/wiki detectors = [     'thumbor.detectors.face_detector',     'thumbor.detectors.feature_detector', ]  # redis parameters queued detectors # redis_queue_server_host = 'localhost' # redis_queue_server_port = 6379 # redis_queue_server_db = 0 # redis_queue_server_password = none  # if use face detection file # opencv use find faces. default should # fine, change @ own peril. # if set relative path relative # thumbor/detectors/face_detector folder #face_detector_cascade_file = 'haarcascade_frontalface_alt.xml'  # security key used encrypt/decrypt urls. # make sure unique , not well-known # can string of 16 characters security_key = "thumbor@musejam@)!$"  # if enable this, unencryted url available # users. # advised set false stop overloading # of server malicious users allow_unsafe_url = false # mixed storage classes. change them fullname of # storage desire each operation. #mixed_storage_file_storage = 'thumbor.storages.file_storage' #mixed_storage_crypto_storage = 'thumbor.storages.no_storage' #mixed_storage_detector_storage = 'thumbor.storages.no_storage'  filters = [     'thumbor.filters.brightness',     'thumbor.filters.contrast',     'thumbor.filters.rgb',     'thumbor.filters.round_corner',     'thumbor.filters.quality',     'thumbor.filters.noise',     'thumbor.filters.watermark',     'thumbor.filters.equalize',     'thumbor.filters.fill',     'thumbor.filters.sharpen',     'thumbor.filters.strip_icc',     'thumbor.filters.frame',      # can applied if there points image being served     # means either using local face detector or image     # has went through remote detection     # 'thumbor.filters.redeye',  

urls images try load this:

http://localhost:8888/q9bojke8j2p2qtv53hbz_g1nmzo=/250x250/smart/http://s3.amazonaws.com/our-company/0ea7eeb2979215f35112d2e5753a1ee5.jpg

i have setup key in /etc/thumbor.key, please let me know if that's necessary post here.

you missing closing bracket in filters option in thumbor.conf.

did miss posting here or in thumbor.conf file?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -