├── .gitignore ├── .rspec ├── .travis.yml ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── Rakefile ├── config.ru ├── cucumber.yml ├── features ├── convert_image_format.feature ├── crop_image.feature ├── define_image_quality.feature ├── resize_image.feature ├── retrieve_image_with_any_name.feature ├── set_background.feature ├── step_definitions │ └── all_steps.rb ├── support │ ├── env.rb │ └── files │ │ ├── test-cropped_to_300x200.jpg │ │ ├── test-resized_to_200x.jpg │ │ ├── test-resized_to_200x200.jpg │ │ ├── test-resized_to_x200.jpg │ │ ├── test-with_75%_of_compression.jpg │ │ ├── test.gif │ │ ├── test.jpg │ │ ├── test.png │ │ ├── with_alpha_channel-with_a_red_background.jpg │ │ └── with_alpha_channel.png └── upload_image.feature ├── lib ├── mugshot.rb └── mugshot │ ├── application.rb │ ├── fs_storage.rb │ ├── http_storage.rb │ ├── image.rb │ ├── magick_factory.rb │ ├── public │ └── crossdomain.xml │ ├── s3_storage.rb │ ├── storage.rb │ └── version.rb ├── mugshot.gemspec └── spec ├── files ├── firefox_png.png ├── test-upload.jpg ├── test.jpg └── test_png.png ├── mugshot ├── application_spec.rb ├── fs_storage_spec.rb ├── http_storage_spec.rb ├── image_spec.rb ├── magick_factory_spec.rb ├── s3_storage_spec.rb └── storage_spec.rb ├── spec_helper.rb └── test.html /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format documentation 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/Rakefile -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/config.ru -------------------------------------------------------------------------------- /cucumber.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/cucumber.yml -------------------------------------------------------------------------------- /features/convert_image_format.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/convert_image_format.feature -------------------------------------------------------------------------------- /features/crop_image.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/crop_image.feature -------------------------------------------------------------------------------- /features/define_image_quality.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/define_image_quality.feature -------------------------------------------------------------------------------- /features/resize_image.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/resize_image.feature -------------------------------------------------------------------------------- /features/retrieve_image_with_any_name.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/retrieve_image_with_any_name.feature -------------------------------------------------------------------------------- /features/set_background.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/set_background.feature -------------------------------------------------------------------------------- /features/step_definitions/all_steps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/step_definitions/all_steps.rb -------------------------------------------------------------------------------- /features/support/env.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/env.rb -------------------------------------------------------------------------------- /features/support/files/test-cropped_to_300x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test-cropped_to_300x200.jpg -------------------------------------------------------------------------------- /features/support/files/test-resized_to_200x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test-resized_to_200x.jpg -------------------------------------------------------------------------------- /features/support/files/test-resized_to_200x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test-resized_to_200x200.jpg -------------------------------------------------------------------------------- /features/support/files/test-resized_to_x200.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test-resized_to_x200.jpg -------------------------------------------------------------------------------- /features/support/files/test-with_75%_of_compression.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test-with_75%_of_compression.jpg -------------------------------------------------------------------------------- /features/support/files/test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test.gif -------------------------------------------------------------------------------- /features/support/files/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test.jpg -------------------------------------------------------------------------------- /features/support/files/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/test.png -------------------------------------------------------------------------------- /features/support/files/with_alpha_channel-with_a_red_background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/with_alpha_channel-with_a_red_background.jpg -------------------------------------------------------------------------------- /features/support/files/with_alpha_channel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/support/files/with_alpha_channel.png -------------------------------------------------------------------------------- /features/upload_image.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/features/upload_image.feature -------------------------------------------------------------------------------- /lib/mugshot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot.rb -------------------------------------------------------------------------------- /lib/mugshot/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/application.rb -------------------------------------------------------------------------------- /lib/mugshot/fs_storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/fs_storage.rb -------------------------------------------------------------------------------- /lib/mugshot/http_storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/http_storage.rb -------------------------------------------------------------------------------- /lib/mugshot/image.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/image.rb -------------------------------------------------------------------------------- /lib/mugshot/magick_factory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/magick_factory.rb -------------------------------------------------------------------------------- /lib/mugshot/public/crossdomain.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/public/crossdomain.xml -------------------------------------------------------------------------------- /lib/mugshot/s3_storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/s3_storage.rb -------------------------------------------------------------------------------- /lib/mugshot/storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/lib/mugshot/storage.rb -------------------------------------------------------------------------------- /lib/mugshot/version.rb: -------------------------------------------------------------------------------- 1 | module Mugshot 2 | VERSION = "1.0.0.rc2" 3 | end 4 | 5 | -------------------------------------------------------------------------------- /mugshot.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/mugshot.gemspec -------------------------------------------------------------------------------- /spec/files/firefox_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/files/firefox_png.png -------------------------------------------------------------------------------- /spec/files/test-upload.jpg: -------------------------------------------------------------------------------- 1 | image 2 | -------------------------------------------------------------------------------- /spec/files/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/files/test.jpg -------------------------------------------------------------------------------- /spec/files/test_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/files/test_png.png -------------------------------------------------------------------------------- /spec/mugshot/application_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/application_spec.rb -------------------------------------------------------------------------------- /spec/mugshot/fs_storage_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/fs_storage_spec.rb -------------------------------------------------------------------------------- /spec/mugshot/http_storage_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/http_storage_spec.rb -------------------------------------------------------------------------------- /spec/mugshot/image_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/image_spec.rb -------------------------------------------------------------------------------- /spec/mugshot/magick_factory_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/magick_factory_spec.rb -------------------------------------------------------------------------------- /spec/mugshot/s3_storage_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/s3_storage_spec.rb -------------------------------------------------------------------------------- /spec/mugshot/storage_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/mugshot/storage_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/mugshot/HEAD/spec/test.html --------------------------------------------------------------------------------