eahanson / imageproxy Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Is there any way to specify an image to be served if the source image is broken?
Options received should be run through data sanity checks. Right now it is possible to add data sent unchecked to the system.
E.g.:
Here the parameter -blur 0x8 is sent along the rotation parameter and the result is a blurred image.
The Lightspun service allows URL without an action specified.
http://img.lightspun.com//?resize=200&key=...&source=http://...
To make the transition easier it would be appreciated if convert was set as the default action.
When attempting to use signatures, I get the following in the apache error log:
The following message is displayed on the browser:
Great project, thanks for putting this together! I had a documentation improvement I wanted to flag. By default Apache2 will give 404's if there are any encoded slashes in a URL, so the Cloudfront selftest example doesn't appear. There's an easy fix, but it took me a while to figure it out. Inside the configuration, add the following:
AllowEncodedSlashes NoDecode
It doesn't work in the main apache2.conf file, only within a vhost! It might be a good addition to the EC2 setup instructions.
Using a clean install of 0.1.4 I get a 500 error when using the convert method.
bundle exec rackup
[2011-08-25 16:03:11] INFO WEBrick 1.3.1
[2011-08-25 16:03:11] INFO ruby 1.8.7 (2011-06-30) [i686-darwin11.1.0]
[2011-08-25 16:03:11] INFO WEBrick::HTTPServer#start: pid=96484 port=9292
undefined method `value' for nil:NilClass
127.0.0.1 - - [25/Aug/2011 16:04:42] "GET /convert?resize=902x10&source=http://cdn01.tv4.se/polopoly_fs/1.2250419!picture/1797810002.jpg HTTP/1.1" 500 - 0.0652
If I revert back to version 0.1.3 it works as expected.
git reset --hard bb026
bundle exec rackup
[2011-08-25 16:06:41] INFO WEBrick 1.3.1
[2011-08-25 16:06:41] INFO ruby 1.8.7 (2011-06-30) [i686-darwin11.1.0]
[2011-08-25 16:06:41] INFO WEBrick::HTTPServer#start: pid=96542 port=9292
127.0.0.1 - - [25/Aug/2011 16:06:43] "GET /convert?resize=902x10&source=http://cdn01.tv4.se/polopoly_fs/1.2215865.1311411724!image/1026142567.jpg_gen/derivatives/w219/1026142567.jpg HTTP/1.1" 200 - 0.4779
How can I fix the following error:
Error (Child process exited with non-zero exit code)
The error was that Open3 was an undefined constant. Switching to bamboo made that message go away.
When deploying the code to Heroku I get the following error.
2011-04-19T13:06:48+00:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing': uninitialized constant Command (NameError)
2011-04-19T13:06:48+00:00 app[web.1]: from ./lib/identify.rb:1
2011-04-19T13:06:48+00:00 app[web.1]: from ./imageproxy.rb:5:in `require'
2011-04-19T13:06:48+00:00 app[web.1]: from ./imageproxy.rb:5
2011-04-19T13:06:48+00:00 app[web.1]: from ./imageproxy.rb:5:in `each'
2011-04-19T13:06:48+00:00 app[web.1]: from ./imageproxy.rb:5
2011-04-19T13:06:48+00:00 app[web.1]: from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
If I copy the methods from Command.rb to the subclasses of Command and remove the inheritance it works.
I have a signature of: "99u+X/QaduSJ18IwFohV7EsU5xc=" which is causing issues when using the path based method.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.