Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: graphicsmagick perl shrink image to size

by perlfan (Vicar)
on Nov 01, 2021 at 16:26 UTC ( #11138303=note: print w/replies, xml ) Need Help??

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 (Sage) 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 (Canon) 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)


    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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138303]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-01-22 18:22 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.