Re: Mogrify vs. Convert

Glenn Randers-Pehrson <[email protected]> Thu, 10 Apr 2003 07:17:53 -0400
Newsgroups gmane.comp.video.graphicsmagick.tools
Message-ID <[email protected]>
At 12:15 PM 4/9/03 -0700, Noah Spurrier wrote:
>But mogrify also has the -format option which makes
>it function like the convert command (save to new file).
>If you added the ability for Convert to overwrite the original file then
>I don't see any need for Mogrify at all. Convert does everything
>that Mogrify does and a little bit more (actually, you would have to
>add -linewidth too, but that's the only thing Convert seems to lack).
>Unless I'm still missing something, the differences between the 
>two commands are so minor. 
>
>It seems like they must have had difference origins
>and then slowly evolved toward the same functionality.
>Do they have different code bases (not counting the libraries)?

No, they share most of their code.  The only extra code to implement
"mogrify" is contained in magick/command.c.  If you were to remove the
"mogrify" subcommand from "gm" the size of gm would be reduced
very little.

Glenn


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com