Re: SVG to PNG

Bob Friesenhahn <[email protected]> Tue, 24 Nov 2020 08:15:10 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Tue, 24 Nov 2020, Pro Turm wrote:

> I'm back on Windows:
>
> 1) It turned out that type.mgk is a must to exist. If it is not found, an
> exception is thrown?
>  ThrowException(exception,ConfigureError,UnableToAccessConfigureFile,
>    filename);
>
> 2) what is the use case for this code in blob.c
> #if defined(MSWINDOWS)
>  {
>    void
>      *resource;
>
>    resource=NTResourceToBlob(filename);
>    if (resource)
>      return resource;
>  }
> #endif /* defined(MSWINDOWS) */

There is a way to embed resource files into compiled binaries when 
using Microsoft Windows.  I see an example of this in the VisualMagick 
configure program.  The files under VisualMagick/configure/res are 
included in the configure binary due to the project file.  The 
resource files can provide an icon, origin/version information, or 
other information which is valuable to have attached to the 
executable.

There is a way to attach error message information (e.g. 
magick/gm_messages.mc) to the binary.  The various "mgk" files may be 
bound to the executable as resources.  The magick/GraphicsMagick.ico 
is attached as the icon resource.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt