Need help with broken thumbail image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bnbstudios
Forum Newbie
Posts: 2
Joined: Fri Sep 21, 2007 1:46 am

Need help with broken thumbail image

Post by bnbstudios »

Hi,
I have GD2 enabled in my webserver.
I have used this function to resize images on the gallery and when clicked they would show the larger ones.
The prob is that the thumbnails show but are broken. Ive tried doin the same with another server i have and that supports the thumbnail resizing.
could anyone help on this ?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

What counts as a broken thumbnail...?
softcode
Forum Newbie
Posts: 10
Joined: Tue Sep 18, 2007 4:50 am

Post by softcode »

Confirm the links to the thumb nails on the server. That would give incomplete images which I suppose is the broken thumbnails.

Are the larger images displaying ?
bnbstudios
Forum Newbie
Posts: 2
Joined: Fri Sep 21, 2007 1:46 am

problem with image resizing

Post by bnbstudios »

well broken thumbnails as i see it are errors from createjpegfromimage() function.
the larger images (original ones) are supported fine. it's only the thumbnails which are create onthe fly by my script. The main confusion is that i have tested this on two servers (both linux) and one of them supports the scrpt as it should.
so what else is there i should try?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Check if the gd extension is loaded?

Code: Select all

if (!extension_loaded('gd'))
{
    die('Sorry, I simply cannot create thumbnails without GD!');
}
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply