Re: SVG to PNG
Pro Turm <[email protected]> Tue, 24 Nov 2020 17:38:23 +0100
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <CADC9rU-dCbqcB58V3M0pF1wiFtXk9pLbUyG8ei=VF3z=AkLO_g@mail.gmail.com> |
> it cuts out the last folder name of the path, thinking it is a binary. and sets the clientPath truncated. it is assumed that the path argument for InitializeMagick(const char *path) ends with a "/" to not to take the ending folder name as for a binary name. 2) blob.c, if GM is not installed #if defined(UseInstalledMagick) then what is the possibility over magic_config.h (and not over environment variables) to determine the location of the configuration path ? It seems the answer is None. I would suggest move out the following snipplet, out of the mentioned #if defined(UseInstalledMagick) ? # if defined(MagickLibConfigPath) AddConfigurePath(path_map,&path_index,MagickLibConfigPath,exception); # endif /* defined(MagickLibConfigPath) */ Am Di., 24. Nov. 2020 um 16:29 Uhr schrieb Pro Turm <[email protected]>: > Again on Windows encountered the following anomaly: > utility.c: DefineClientPathAndName->GetPathComponent > it cuts out the last folder name of the path, thinking it is a binary. and > sets the clientPath truncated. > > Is this a bug or a feature ? > > Am Di., 24. Nov. 2020 um 15:15 Uhr schrieb Bob Friesenhahn < > [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 >> >> >> _______________________________________________ >> 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