GraphicsMagick: GetImageInfoAttribute(): For the "name" key, ret...
GraphicsMagick Commits <[email protected]> Sun, 27 Aug 2023 19:51:49 -0500
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.12061.1693183924.1374.graphicsmagick-commit@lists.sourceforge.net> |
changeset bb42cd90ce6f in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=bb42cd90ce6f summary: GetImageInfoAttribute(): For the "name" key, return the input file base name diffstat: ChangeLog | 4 ++++ magick/attribute.c | 2 ++ www/Changelog.html | 3 +++ 3 files changed, 9 insertions(+), 0 deletions(-) diffs (38 lines): diff -r 91afa18a6161 -r bb42cd90ce6f ChangeLog --- a/ChangeLog Sun Aug 27 13:08:31 2023 -0500 +++ b/ChangeLog Sun Aug 27 19:51:44 2023 -0500 @@ -1,5 +1,9 @@ 2023-08-27 Bob Friesenhahn <[email protected]> + * magick/attribute.c (GetImageInfoAttribute): For the "name" key, + return the input file base name, until reason is found to do + otherwise. + * magick/utility.c (TranslateTextEx): Restore previous functionality in which a NULL pointer is returned instead of an empty string. Some algorithms are depending on this! Addresses diff -r 91afa18a6161 -r bb42cd90ce6f magick/attribute.c --- a/magick/attribute.c Sun Aug 27 13:08:31 2023 -0500 +++ b/magick/attribute.c Sun Aug 27 19:51:44 2023 -0500 @@ -2665,6 +2665,8 @@ { if (LocaleNCompare("name",key,2) == 0) { + /* What should this really be? */ + GetPathComponent(image->magick_filename,BasePath,filename); (void) strlcpy(attribute,filename,MaxTextExtent); break; } diff -r 91afa18a6161 -r bb42cd90ce6f www/Changelog.html --- a/www/Changelog.html Sun Aug 27 13:08:31 2023 -0500 +++ b/www/Changelog.html Sun Aug 27 19:51:44 2023 -0500 @@ -40,6 +40,9 @@ <p>2023-08-27 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p> <blockquote> <ul class="simple"> +<li><p>magick/attribute.c (GetImageInfoAttribute): For the "name" key, +return the input file base name, until reason is found to do +otherwise.</p></li> <li><p>magick/utility.c (TranslateTextEx): Restore previous functionality in which a NULL pointer is returned instead of an empty string. Some algorithms are depending on this! Addresses