Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 10-18-2004, 12:32 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
Quality of thumbnails.

First of all thankyou for a great script. I have been looking for something like this for a long time.

I would like the thumbnails to be better quality, they are compressed too much. I have looked in the code for a parameter on the matter but couldn't find one. Can this be fixed and how?

Regards,
Kenneth
Reply With Quote
  #2  
Old 10-18-2004, 12:57 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Open up admin/index.php and look for
imagejpeg($img, "../thumbnails/thumb_$file");

It's very close to the end of the entire script.

Edit that so it reads
imagejpeg($img, "../thumbnails/thumb_$file",100);

The 100 is an optional thing telling gd to use as little compression as possible.

// punK
__________________
icq: 66760929
Reply With Quote
  #3  
Old 10-18-2004, 01:43 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
Great that was it! Thx for the quick response. Now the thumbnails are nice and clean but not very sharp. I've checked the latest gd documentation (2.0.28) and I see that gd has a sharpening function (gdImageSharpen) is it possible to add that fuction to the thumbnails so they could be sharpened?

http://www.boutell.com/gd/manual2.0.28.html (search for 'void gdImageSharpen')

/Kenneth
Reply With Quote
  #4  
Old 10-18-2004, 02:01 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Try to add it and see what happens.

$img = gdImageSharpen($img);
Just above the line you edited for compression.

Test it, tell me if it works!

// punK
__________________
icq: 66760929
Reply With Quote
  #5  
Old 10-18-2004, 02:10 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
Well, I have no idea how and where to add it but I gave it a try and got this error:

Quote:
Fatal error: Call to undefined function: gdimagesharpen() in /var/www/hotels/.dk/pinx/html/photoblog/admin/index.php on line 842
Edit: Wait I was a bit quick there. I get this: Fatal error: Call to undefined function: gdimagesharpen() in /var/www/hotels/.dk/pinx/html/photoblog/admin/index.php on line 837

when I try to resize thumbnails.

/Kenneth
Reply With Quote
  #6  
Old 10-18-2004, 02:19 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
My guess would be that your gd-version don't support that function (gdImageSharpen).

That is what the error says.

// punK
__________________
icq: 66760929
Reply With Quote
  #7  
Old 10-18-2004, 02:23 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
I've checked and my host runs gd 2.0.28 and gdImageSharpen was added in ver. 2.0.16 so I don't think that's the problem.

/Kenneth
Reply With Quote
  #8  
Old 10-18-2004, 02:27 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Oh darn. It's not yet implemented in PHP unfortunately, that was the problem.

// punK
__________________
icq: 66760929
Reply With Quote
  #9  
Old 10-18-2004, 03:07 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
Ah ok. It would be cool if it worked.

/Kenneth
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:45 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs