khashnan / timthumb

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

Option to set a default/fallback image when failure/error occurs. #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Can we please have a way to set a url to a default image, so that the default 
image will load when an error occur, such as file not found, invalid mime, etc. 

This is so that instead of getting a broken image link, we can have a proper 
image. Sometimes although the actual url to an external image works, but 
timthumb cannot read it, and hence produces an error.

Original issue reported on code.google.com by lin.fred...@gmail.com on 9 Oct 2010 at 6:09

GoogleCodeExporter commented 8 years ago
I think that this is a function of the software that is using TimThumb and not 
a feature TimThumb itself should support.

Original comment by BinaryMoon on 14 Feb 2011 at 10:40

GoogleCodeExporter commented 8 years ago
@BinaryMoon - i respectively don't agree.

The reason being that we would have to call timthumb twice with teh exact same 
parameters if we detect a 400 status code. It would be much easier if timthumb 
offers this type of fallback automatically. Also, certain programs are 
increasingly difficult to detect image problems on... For example, iPhone apps 
that use the created thumbnails. (where im running into this problem at)

Original comment by ccagle8 on 7 Jun 2011 at 12:32

GoogleCodeExporter commented 8 years ago
It would certainly be very very useful, and deeply appreciated. 

Original comment by lin.fred...@gmail.com on 10 Jun 2011 at 1:46