Getting and setting image resolution

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
BobSlayer
Forum Newbie
Posts: 2
Joined: Sat Jun 25, 2005 5:33 pm

Getting and setting image resolution

Post by BobSlayer »

Does anyone know how to get and set the resolution of an image using php? For example I need to be able to convert a 72dpi image to 300dpi, while keeping the absolute pixel size of the image the same. Thankyou.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

BobSlayer
Forum Newbie
Posts: 2
Joined: Sat Jun 25, 2005 5:33 pm

Post by BobSlayer »

I am not sure that PHPThumb allows the resolution to be changed. Just to be clear as to what I mean, what I am after is a way not to change the image size but the resolution at which the image will be printed out. The pixel size can remain the same I just need to check the printing resolution at which the photos are uploaded to make sure that they will print at 300dpi not 72dpi.
Post Reply