in reply to graphicsmagick perl shrink image to size

I've never heard of graphicsmagick - forked from ImageMagick in 2002, nice! I guess they provide the standard convert command? If so, the first step is figuring that out. I use Image/PerlMagick myself for some things, but I have to study the docs any time I really need to do something. But anything you can do at the commandline (convert) should translate conceptially to the Perl API, and in fact that's what I do usually - get it working in the CLI then translate it over to the Perl using what I've learned.

Replies are listed 'Best First'.
Re^2: graphicsmagick perl shrink image to size
by LanX (Saint) on Nov 01, 2021 at 21:04 UTC
    I used convert a lot in the past and at the beginning I always felt dumb when thing didn't go like documented.

    Then I realized that the tool is a Frankenstein'ish monster of various incompatible tools for different formats sewed together.

    The docs are accordingly a Babylonian mishmash where different terminologies mix and getting things done require a lot of try and error.

    Perl modules providing a wrapper can only attempt to compensate this.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      > Babylonian Frankenstein'ish monster

      No doubt, sounds like why it's spelled magick with an icK :-)

Re^2: graphicsmagick perl shrink image to size
by afoken (Chancellor) on Nov 02, 2021 at 11:36 UTC
    forked from ImageMagick in 2002

    ... but still does use the braindead ImageMagick way of NOT raising errors, but instead returning error codes. Shouldn't have been too hard to fix that after forking. (See also Re^2: Pixel setting oddity - Image:Magick, Re^7: Use of uninitialized value $pic)

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^2: graphicsmagick perl shrink image to size
by melutovich (Acolyte) on Nov 01, 2021 at 20:55 UTC