Last modified: 2014-10-23 12:01:24 UTC
As title says: If a width largher than the original is called, return original image instead of error.
Why should this happen?
I use this for dynmaic thumb resizing with javascript.
How does returning the original help? If you know the size of the original, you can just cap the requested size on the client size. If you don't know the original size, the result will look crappy anyway. Returning the original image for a practically infinite variety of URLs would AFAIK result in pollution of the varnish cache as the image would have to be stored there for every URL separately.
Check if viewport has enough width to display the 500px image. Call thumb.php?f=Foo.jpg&w=500 > Displays a 500px thumb or a smaller original How does returning an error help?