ferenznetworks / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Problem with some Image Hosters #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Click this url

http://burner1.pixburner.com/erez/erez?src=maw/live/3106.000.16600%20a.tif&tmp=M
edium&width=325&height=445&quality=90&sharpen=15&format=jpeg&fill=ffffff&h=180&w
=150&zc=1&q=90

The returned image is a JPG. Timthumb however 'thinks' it's a .TIF (because of 
the .tif in the url). The cached image also has a size of 0 bytes, so just 
rewriting the extension is not enough.

Any ideas on how to solve this? I've seen this happen on a couple of sites, 
 so the problem is quite generic.

Original issue reported on code.google.com by paul.vra...@gmail.com on 8 Aug 2010 at 2:48

GoogleCodeExporter commented 8 years ago
So there are a couple of problems I guess:

1 external url's with spaces (they don't work with TimThumb)
2 many image hosters also pass parameters in the url
3 some urls are redirected

I'm gonna try to save the files locally first (download once) and use Timthumb 
on the local copy

Original comment by paul.vra...@gmail.com on 11 Aug 2010 at 8:39

GoogleCodeExporter commented 8 years ago
The issue is the parameters in the image url getting mixed up with the 
parameters in the timthumb url.

If you urlencode the parameters when adding the image url as the timthumb src 
then it will work fine.

Original comment by BinaryMoon on 5 Sep 2010 at 8:14