Home  |  About  | Last |  Submit  |  Contact
AllQuests.com




Previous Question:  set off alarm at specific time  PHPNext Question:  IE6 UL and Removing Indent  CSS
Question GDLib question s ( SitePoint Forums PHP )
Updated: 2010-07-21 05:50:03 (2)
GDLib question s

Hey guys,

Just wondering if ya could tell me ...
1.) If I want to resize an image using GDLib this is not a bother ... I can view examples of the code to do this in most places. What I want to know is resizing this ... will it reduce the 'file' size as well?

If not is there any way to go about this.

I want to be able to choose an image and resize it before adding it to my data base.

2.) Is it possbile to resize an image before adding to the DB or should I resize the image when I select from the DB?

Following on from storing the image in a DB ...
3.) When working with GDLib is it better to store the image as a binary in the DB directly or store a path to the images directory with the file name of the image that the data relates too?

Which allows for easier use of the GDlib?

Regards,

Ronan

Answers: GDLib question s ( SitePoint Forums PHP )
GDLib question s

Quote:
Originally Posted by ronanmagee
Hey guys,

Just wondering if ya could tell me ...
1.) If I want to resize an image using GDLib this is not a bother ... I can view examples of the code to do this in most places. What I want to know is resizing this ... will it reduce the 'file' size as well?

If not is there any way to go about this.

I want to be able to choose an image and resize it before adding it to my data base.

2.) Is it possbile to resize an image before adding to the DB or should I resize the image when I select from the DB?

Following on from storing the image in a DB ...

3.) When working with GDLib is it better to store the image as a binary in the DB directly or store a path to the images directory with the file name of the image that the data relates too?

Which allows for easier use of the GDlib?

Regards,

Ronan
1) Sure!
2) It is possible
3) As you want, I usually store just the file name.

Mike Borozdin

GDLib question s

Hey mike - thanks for your reply,

Ronan

ronanmagee

Previous Question:  set off alarm at specific time  SitePoint Forums  PHPNext Question:  IE6 UL and Removing Indent  SitePoint Forums  CSS

- Source: GDLib question s SitePoint Forums PHP
- Previous Question: set off alarm at specific time SitePoint Forums PHP
- Next Question: IE6 UL and Removing Indent SitePoint Forums CSS