Re: SVG to PNG
Pro Turm <[email protected]> Mon, 23 Nov 2020 16:24:21 +0100
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <CADC9rU-Za6aA9NP=QWf7=qu5czbmM6Z0y5r6BupTyBgyxOiDuw@mail.gmail.com> |
> FormatString(test_path,"%.1024s%.256s", > (const char *)MagickMapDereferenceIterator(path_map_iterator,0), > filename); Btw this overwrites test_path with each iteration, to contain the maximum of 1024.256. So if the first test_path is longer, the second test_path would contain the rest of it. (Try to debug it, since I dont know how to explain this better). Am Mo., 23. Nov. 2020 um 16:21 Uhr schrieb Pro Turm <[email protected]>: > > The 'libxml' subdirectory is only useful for the Windows Visual Studio > build. > Is it expected to have some Compile/Preprocessor switches to build with > the delivered libxml on Windows? > One I had to use was /wd4996 (deprecated POSIX methods). I dont know if > because of the libxml sources are from 2009. > > I couldnt find a cmake or something similar, determining which .c files > are needed by GM. Tried to include use, had to exclude several. This could > be a possible CMakeLists.txt in the libxml folder. > cmake_minimum_required (VERSION 3.14) > > file(GLOB LIBXML2_SRCS "*.c") > list(FILTER LIBXML2_SRCS EXCLUDE REGEX "nano(ftp|http)\\.c") > list(FILTER LIBXML2_SRCS EXCLUDE REGEX "run.*\\.c") > list(FILTER LIBXML2_SRCS EXCLUDE REGEX "test.*\\.c") > list(FILTER LIBXML2_SRCS EXCLUDE REGEX "xmlcatalog\\.c") > set(LIBXML2_SRCS ${LIBXML2_SRCS} PARENT_SCOPE) > > Btw I also tried the integration with libxml2 and vcpkg. It is not > flawless yet. Probably due to a bug of not delivering/downloading directly > the win32config.h, which is included in svg.c. > > Am Fr., 13. Nov. 2020 um 15:17 Uhr schrieb Bob Friesenhahn < > [email protected]>: > >> On Fri, 13 Nov 2020, Pro Turm wrote: >> >> > HasXML >> > >> >>> 1) Are there any specific APIs concerning SVG? I couldnt grub any >> > specific >> >>> documentation page concerning svg. >> >> >> >> There are no specific APIs. SVG is just an input file format. >> > >> > The documentation (http://www.graphicsmagick.org/formats.html) says >> "*Requires >> > libxml2 <http://xmlsoft.org/> and freetype2 <http://www.freetype.org/ >> >*". >> > In svg.c there is the #if defined(HasXML) >> > which points to # include <libxml/...h>, which is suppose to to be the >> > libxml2-dev ? What is the purpose of the folder *libxml* in GM ? Is it >> > supposed to be used in this context? >> >> The 'libxml' subdirectory is only useful for the Windows Visual Studio >> build. It is indeed libxml2 edited to work with Visual Studio and the >> GraphicsMagick build. >> >> It would be nice if directories like 'libxml' were not in the core >> GraphicsMagick repository but when I was integrating the repository, I >> did not find a good way to assemble a Visual Studio build environment >> from 'parts' at the time. >> >> 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