How to store image in 300 dpi using php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eric Ilavia
    New Member
    • Sep 2007
    • 1

    How to store image in 300 dpi using php

    Can anyone tell me how to store an image in 300 dpi using php and gd which gd function is used.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi Eric. Welcome to TSDN!

    The GD functions will work on most JPEG, PNG and GIF images. They also have support for some BMP formats, tho I have never been able to find much use for them.

    There is no way to give exactly the functions you will need, as I do not know what you are trying to do, but all the GD functions are listed in the above link.

    If that does not work for you, you could try a Google search for ImageMagick. I have never used it but it is supposedly superior to GD in many ways.

    Comment

    • ronnil
      Recognized Expert New Member
      • Jun 2007
      • 134

      #3
      Hi Eric

      If your picture is 300dpi, I'd suppose saving the picture will still produce a 300 dpi picture unless you alter the size of the picture.

      I would advise you not to use a php-method to toy around with images used for printing (if that is your objective). In this case i think Java would be better (don't know how much better tho)

      I found this topic discussing the same subject, you might wanna check it out link

      Comment

      Working...