Image Magick vs GD2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Grae
    Junior Member
    • Apr 2005
    • 6

    #1

    Image Magick vs GD2

    Hola

    Curious what everyone prefers, Image Magick or GD2? Even more curious what the dathorn staff prefers. What is easier on the servers?
    6
    Image Magick
    0%
    3
    GD2
    0%
    3

    The poll is expired.

  • Elite
    Senior Member
    • Apr 2004
    • 168

    #2
    imagemagick - I could be wrong, but I don't think GD2 can write gifs (untill the patent expires..)
    --edit--
    I stand corrected seems 2.0.28 supports writing to gifs...
    --edit--

    Comment

    • sdjl
      Senior Member
      • Mar 2004
      • 502

      #3
      I'm personally a fan of imagemagick, mainly because i use Gallery and it doesn't support GD.
      Here's a list from the gallery authors as to why imagemagick/netpbm is better over GD:



      However, i have used basic GD functions in my PHP code and find them to be sufficient for basic image generation, such as text.

      I think if you want to perform more complex operations, your best bet is to use imagemagick over GD

      David
      -----
      Do you fear the obsolescence of the metanarrative apparatus of legitimation?

      Comment

      • Buddha
        Senior Member
        • Mar 2004
        • 825

        #4
        It depends ...

        If your stuck having to chose between the two for Coppermine or some other gallery then I'd probably go with GD2 for performance not image quality.

        If your programming an application then you need to be able to use either. If the user had support for both I'd probably use both choosing the best for the task.

        I'm sure Andrew could speak to server performance better than me and hope he does ... but what the heck. Creating images on the fly is a very server-intensive process. Screwing up with either GD or ImageMagick would be a very bad thing. Couple of general considerations while coding: Batch processing of images is best done off the server. If you do it then moderate it. Images should be stored after processing rather than created dynamically each time. Performance of GD2 and ImageMagick many vary from task to task but neither should be used to processing really large images. That 10MB press ready jpeg would be better off processed by PhotoShop.

        If any of that makes sense then I'm doing pretty good for a Sunday morning.
        "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

        Comment

        • Grae
          Junior Member
          • Apr 2005
          • 6

          #5
          Elite: I think the gif patent was lifted last year, but I could be wrong.

          sdjl: Thanks for the link. It might be outdated though, as they never mention GD2.

          Buddha: Good idea about processing images offline. Thanks for the tip. Are you saying GD2 has better performance, but ImageMagick has better image quality?

          As you guys have guessed, I am configuring an online gallery (vbadvanced). If anyone has anymore good links describing the differences I would appreciate it.

          Comment

          • sdjl
            Senior Member
            • Mar 2004
            • 502

            #6
            Just a side note, Gallery has something called gallery remote which packages a piece of java software with imagemagick. It allows you to process your images on your computer and then upload them to your gallery installation online

            David
            -----
            Do you fear the obsolescence of the metanarrative apparatus of legitimation?

            Comment

            • Buddha
              Senior Member
              • Mar 2004
              • 825

              #7
              Originally posted by Grae
              Are you saying GD2 has better performance, but ImageMagick has better image quality?
              GD is linked to PHP as apposed to ImageMagick which is an external program. I'd give a slight advantage here to GD for performance. However, image processing is a CPU/memory intensive operation weather you use GD or ImageMagick. Compress images have to be uncompressed to process ... (atleast they did back in my day) ... which means your little 43KB jpeg could grow to half a MB or more in memory. It not usually for jpegs to be 10 to 20 times larger uncompressed. Just something else to consider while coding.

              There is suppose to be a Imagick extension for PHP but I don't believe it's used here at Dathorn nor have I seen it used anywhere else ... yet.

              ImageMagick seems to produce better images, IMHO. Those better images seem usually to be larger too. Your mileage may vary.
              "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

              Comment

              Working...