Image Resolution
Posted: 2007-06-21T00:57:04-07:00
Hi,
First time posting.
Just getting my teeth into imagemagick but having some difficulty.
I have a client site that needs to upload images and produce print quality images with annotations as a standard width / height.
I have grasped the basics of imagemagick in terms of annotating and saving new images but I was hoping for a way to getting the image resolution (dpi) of the uploaded image before I do any annotating.
I am using PHP to do all the work and using exec() to run the command lines I build.
Is there a way to get the resolution and compare that to a pre-defined resolution to see if it advisable to carry on?
Would it be better to use MagickWand for PHP?
Thanks,
Z.
First time posting.
Just getting my teeth into imagemagick but having some difficulty.
I have a client site that needs to upload images and produce print quality images with annotations as a standard width / height.
I have grasped the basics of imagemagick in terms of annotating and saving new images but I was hoping for a way to getting the image resolution (dpi) of the uploaded image before I do any annotating.
I am using PHP to do all the work and using exec() to run the command lines I build.
Is there a way to get the resolution and compare that to a pre-defined resolution to see if it advisable to carry on?
Would it be better to use MagickWand for PHP?
Thanks,
Z.