Author Topic: GD Thumbnail Quality  (Read 7081 times)

0 Members and 1 Guest are viewing this topic.

Offline Jrampton

  • Pre-Newbie
  • Posts: 4
    • View Profile
GD Thumbnail Quality
« on: February 02, 2007, 09:31:11 PM »
Hi,

I've copied the perl version of GD ver: 2.0.33 into the cgi folder on my hosting account on Godaddy and it sort of works

Only trouble i am having now is that if i re-size an image or create a thumbnail it looses the quality/colour

what do i need to change to sort this out ?

Do i just need to change a line in one of the files ?

Thanks in advance.

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: GD Thumbnail Quality
« Reply #1 on: February 03, 2007, 04:22:18 AM »
open include/constants.php and find this

Code: [Select]
//define('CONVERT_IS_GD2', 1);
and just uncomment this or if you have 0 on end change them to 1.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: GD Thumbnail Quality
« Reply #2 on: February 03, 2007, 10:17:40 AM »
Is it a 4images issues?
Or do you have a Problem to get the GD Lib work?

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: GD Thumbnail Quality
« Reply #3 on: February 03, 2007, 10:50:51 AM »
Hi,

I don't have that, besically i couldn't work out how to install apps onto my hosting space and godaddy weren't very helpfull, so i just extracted the .zip file to my PC and FTP'd it to my webspace so i probably have the wrong thing.

How can i load new applications up, it there some kind of client i can use to do this ?

Change your host, godaddy is good for your domain but not for host, i'm tryng allmost one month 4image on godaddy but withour  success.

Offline Jrampton

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: GD Thumbnail Quality
« Reply #4 on: February 03, 2007, 11:11:52 AM »
I'm not sure i found the file in 4 image and changed the 0 - 1

// If you use GD higher 2.0.1 and PHP higher 4.0.6 set this to 1.
// Your thumbnails will be created with better quality
define('CONVERT_IS_GD2', 1);

But this hasn't changed the quality of the thumbnail.

It also gives pictures a bad quality if i re-size them.

Offline Jrampton

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: GD Thumbnail Quality
« Reply #5 on: February 03, 2007, 11:14:11 AM »
Foget that last comment

It's worked !!!! Yay i'm such a happy little newbie !!!!  :lol:

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: GD Thumbnail Quality
« Reply #6 on: February 03, 2007, 11:16:19 AM »
I'm not sure i found the file in 4 image and changed the 0 - 1

// If you use GD higher 2.0.1 and PHP higher 4.0.6 set this to 1.
// Your thumbnails will be created with better quality
define('CONVERT_IS_GD2', 1);

But this hasn't changed the quality of the thumbnail.

It also gives pictures a bad quality if i re-size them.

GD library never give you better quality for resized photos, its god for thumbnails but not for resizing photos from big one,
you need change too much parameters in resizing process and for that you need some special Photographic software like PhotoShop, or
use ImageMagick on your server.

Offline Jrampton

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: GD Thumbnail Quality
« Reply #7 on: February 03, 2007, 11:21:09 AM »
Thanks for all your help, i hadn't considered looking at the 4 images files  :roll:

And i don't have direct access to /usr/local/bin etc on go daddy which is a pain but you guys got me there in the end.

thanks  to om6acw  for dignosing the problem.

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: GD Thumbnail Quality
« Reply #8 on: February 03, 2007, 11:23:16 AM »
Thanks for all your help, i hadn't considered looking at the 4 images files  :roll:

And i don't have direct access to /usr/local/bin etc on go daddy which is a pain but you guys got me there in the end.

thanks  to om6acw  for dignosing the problem.

No problem, next time search in forum because this problem is covered in FAQ and god luck with 4image its realy great gallery script!!