llocally / timthumb

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

Files with an invalid mime type (according to getimagesize) don't display #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.http://www.tiredofit.ca/wp-content/themes/tiredofit/timthumb.php?src=http://st
atic.flickr.com/6017/5990711097_87e804a249.jpg&h=300&w=500&zc=1&q=45
2.
3.

What is the expected output? What do you see instead?
No Mine Type

What version of the product are you using? On what operating system?

1.40
Please provide any additional information below.
For some reason static.flickr.com images 
do not show. Can we just set it so that all static.flickr images are hardcoded?

Original issue reported on code.google.com by d...@wetcoast.ca on 31 Jul 2011 at 5:33

GoogleCodeExporter commented 9 years ago
Please try this again, it's probably fixed now.

Original comment by mmaun...@gmail.com on 5 Aug 2011 at 10:25

GoogleCodeExporter commented 9 years ago
Hi - the last version it worked in is 1.21

Original comment by d...@wetcoast.ca on 5 Aug 2011 at 10:32

GoogleCodeExporter commented 9 years ago
looks like your link is working to me.

Original comment by BinaryMoon on 6 Aug 2011 at 7:54

GoogleCodeExporter commented 9 years ago
It's working, but only under 1.21 - However anything higher spits out the Bad 
Mime Type error.

Original comment by d...@wetcoast.ca on 6 Aug 2011 at 5:23

GoogleCodeExporter commented 9 years ago
Changed the title to reflect what the bug is.

I don't think this was actually working on 1.21. It simply served up the file 
unchanged. The processing code requires a valid mime type in that version.

If you try other images from flickr you'll see they work.

I'm looking into a workaround for this..

Original comment by mmaun...@gmail.com on 7 Aug 2011 at 1:17

GoogleCodeExporter commented 9 years ago
Sorry I got the issue wrong in my last comment. 
Curl wasn't following redirects. The url you're providing should be pointing to 
one of flickr's "farm" servers which is where it redirects if you put it in 
your browser. 
Curl follows redirs now and so this is fixed.
If curl isn't installed, php's own fetching already follows redirects, so 
you're obviously using curl. 
Grab 2.2, just uploaded, and you're all set.

Original comment by mmaun...@gmail.com on 7 Aug 2011 at 1:34