If you know anything about PerlMagick/ImageMagick, please have a look

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpaceAce
    Confirmed User
    • Jul 2002
    • 6493

    #1

    If you know anything about PerlMagick/ImageMagick, please have a look

    I've written a PERL script to thumbnail pictures for me (auto cropping so I can make all the thumbs the same size without distortion) usin PerlMagick. It works great except for one bizarre problem: when I run the program on this one specific set of pictures I have, the thumbs are huge (filesize). I'm talking 35-45K for thumbnails that are 95x115. So far, I have run the program on three sets of content and only one does this. It doesn't matter if I adjust the quality, either. Quality = 75 or quality = 0, the thumbs are huge.

    The script does this:
    Calculate size for cropping
    PerlMagick->Crop()
    PerlMagick->Resize()
    PerlMagick->Write()

    I couldn't find any really good mailing lists for this question and since it's porn-related, I thought I'd ask here. I appreciate any help.

    SpaceAce
  • boldy
    Macdaddy coder
    • Feb 2002
    • 2806

    #2
    take a look at nconvert

    I've struggled with perlmagic also ..
    MacDaddy Coder.

    Comment

    • SpaceAce
      Confirmed User
      • Jul 2002
      • 6493

      #3
      Thanks, boldy, I'll look into that right away.

      Anyone else have some suggestions in case this doesn't work?

      SpaceAce

      Comment

      • Alky
        Confirmed User
        • Apr 2002
        • 5651

        #4
        ya use convert .... just doing a project now actually where i need it, but if anyone can tell me how to stop the premature header errors from convert i'd owe ya.

        btw, i dont use the perl modules for them, i just use system calls..

        `convert origfile -geometry 75x75+0+0 thumbfile`;

        mike

        Comment

        • SpaceAce
          Confirmed User
          • Jul 2002
          • 6493

          #5
          I didn't see the functions I wanted available from command-line convert which is why I went with PerlMagick. Also, I am thinking of adding thumbnailing capability to AVS Weasel, which also means PERL.

          SpaceAce

          Comment

          • SpaceAce
            Confirmed User
            • Jul 2002
            • 6493

            #6
            Actually, there does seem to be more functions in this newer version I installed. Let's see if it makes smaller thumbnails.

            [Later...]
            The answer is "no". Still produces great big honkin' thumbnalils

            SpaceAce
            Last edited by SpaceAce; 09-12-2002, 11:57 AM.

            Comment

            • SpaceAce
              Confirmed User
              • Jul 2002
              • 6493

              #7
              Mystery solved: it's embedded profile information. Just fire this up before saving the image:

              $image->Profile(name=>"*");

              SpaceAce
              Last edited by SpaceAce; 09-12-2002, 12:12 PM.

              Comment

              • grumpy
                Too lazy to set a custom title
                • Jan 2002
                • 9870

                #8
                use php...its easy then
                Don't let greediness blur your vision | You gotta let some shit slide
                icq - 441-456-888

                Comment

                Working...