Re: SVG to PNG

Pro Turm <[email protected]> Fri, 20 Nov 2020 09:11:09 +0100
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <CADC9rU_mkG0LaRABbgwmTQzff=vj5F=XL4oHD2f6-Fic21-wFg@mail.gmail.com>
PS Please register a bug in blob.c
If MagickLibConfigPath is shorter, i.e. has a shorter length, then when
iterating the path_map , first the MagickShareConfigPath is iterated, than
the LibConfigPath:

# if defined(MagickShareConfigPath)

  AddConfigurePath(path_map,&path_index,MagickShareConfigPath,exception);

# endif /* defined(MagickShareConfigPath) */


# if defined(MagickLibConfigPath)

  AddConfigurePath(path_map,&path_index,MagickLibConfigPath,exception);

# endif /* defined(MagickLibConfigPath) */
...while(MagickMapIterateNext(path_map_iterator,&key))
...      FormatString(test_path,"%.1024s%.256s",        (const char
*)MagickMapDereferenceIterator(path_map_iterator,0),        filename);
      file=fopen(test_path,"rb");      if (file )
         if (blob)            break;
...

The above means that path_map iterations would try to open a file with
a test_path contains the LibConfigPath with additionally what's
remaining from the ShareConfigPath...

The fix is to initialize the test_path in the loop (i.e. for each
iteration):char        test_path[MaxTextExtent] = "";



Am Do., 19. Nov. 2020 um 10:21 Uhr schrieb Pro Turm <[email protected]>:

> > With the "uninstalled" mode, everything is relative to where the program
> executable (or shared library) is.
> I couldnt confirm that on Linux: When used ./config --disable-installed,
> all the paths were absolute. Here an extract from magick_config.h:
> ...
> /* arguments passed to configure */
> #define GM_BUILD_CONFIGURE_ARGS "./configure  '--without-x'
> '--disable-installed'"
> ...
> /* Directory where executables are installed. */
> #define MagickBinPath "/usr/local/bin/"
> ...
> /* Directory where architecture-dependent configuration files live. */
> #define MagickLibConfigPath "/usr/local/lib/GraphicsMagick-1.4/config/"
> ...
> .
>
> However, I was expecting to have something like
> #define MagickLibConfigPath "./config/"
> ?!?
>
> > "http://www.graphicsmagick.org/GraphicsMagick.html"... I do see some
> mention of type.mgk
> Of course, this is the first place, Im looking for information, before I
> place a question here.
>
>
> Am Do., 19. Nov. 2020 um 00:37 Uhr schrieb Bob Friesenhahn <
> [email protected]>:
>
>> On Wed, 18 Nov 2020, Pro Turm wrote:
>>
>> >> There is also an "uninstalled" configure option
>> > If I understood you correctly, using --disable-installed is one option
>> to
>> > define paths for configuration files, the other is to rewrite handish
>> the
>> > paths in magick_config.h
>>
>> With the "uninstalled" mode, everything is relative to where the
>> program executable (or shared library) is.
>>
>> >> Nope.
>> > So, I have to set  different type.mgk for Linux and Windows over the
>> > magick_config.h ? Or am I expected to have type-linux.mgk ?
>>
>> Having a type-linux.mgk would be difficult since there is no standard
>> set of fonts under Linux.  There are some popular font packages
>> available on many distributions and you could request that the user
>> install that package (maybe via a dependency rule followed by the
>> operating system package manager) and then provide a mapping file for
>> it.
>>
>> > PS Is all the above information in the documentation, or mostly in the
>> > source code? If the former, I would have liked to had read it before
>> > starting the discussion. However, I wasn't a skillful enough searcher
>> for
>> > it.
>>
>> All of the documentation comes with the software in the 'www'
>> subdirectory.  There is a huge hunk of documentation at
>> "http://www.graphicsmagick.org/GraphicsMagick.html" (which you can
>> find at "www/GraphicsMagick.html".  I do see some mention of type.mgk.
>>
>> 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
>>
>>
>> _______________________________________________
>> Graphicsmagick-help mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
>>
>

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help