imagemagick: append label, gravity buggy











up vote
2
down vote

favorite












I was trying to reproduce the hint in



imagemagick: append a label under image with font size



This is my source image:



enter image description here



convert red.png -pointsize 36 label:"Test label" -gravity center -append red2.png


But instead of the expected result (label placed on bottom centered) I got this



enter image description here



I don't think that imagemagick has a bug. So, what am I doing wrong?



Here the version's info



convert -version



GraphicsMagick 1.4 snapshot-20181020 Q16
http://www.GraphicsMagick.org/ Copyright (C) 2002-2018 GraphicsMagick
Group. Additional copyrights and licenses apply to this software. See
http://www.GraphicsMagick.org/www/Copyright.html for details.



Feature Support: Native Thread Safe yes Large Files (> 32
bit) yes Large Memory (> 32 bit) yes BZIP

yes DPS no FlashPix no

FreeType yes Ghostscript (Library) no JBIG

yes JPEG-2000 no JPEG yes

Little CMS yes Loadable Modules no OpenMP

yes (201511) PNG yes TIFF

yes TRIO no UMEM no WebP
yes WMF yes X11 yes

XML yes ZLIB yes



Host type: x86_64-pc-linux-gnu



Configured using the command: ./configure '--build'
'x86_64-linux-gnu' '--enable-shared' '--enable-static'
'--enable-libtool-verbose' '--prefix=/usr'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--docdir=${prefix}/share/doc/graphicsmagick'
'--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x'
'--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11'
'--without-dps' '--without-modules' '--without-frozenpaths'
'--with-webp' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor'
'--enable-quantum-library-names' '--with-quantum-depth=16'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security'



Final Build Parameters: CC = gcc CFLAGS = -fopenmp -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2 CXX = g++ CXXFLAGS = -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -pthread LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/X11
-L/usr/lib/x86_64-linux-gnu LIBS = -ljbig -lwebp -lwebpmux -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread











share|improve this question


















  • 2




    Judging by the version info, you are using GraphicsMagick so I don't understand why you call it ImageMagick and tag it as such when it isn't. ImageMagick and GraphicsMagick are two different things.
    – Mark Setchell
    Nov 8 at 17:12










  • That's a point. I was not aware of this. Thanks.
    – Juergen
    Nov 8 at 17:16















up vote
2
down vote

favorite












I was trying to reproduce the hint in



imagemagick: append a label under image with font size



This is my source image:



enter image description here



convert red.png -pointsize 36 label:"Test label" -gravity center -append red2.png


But instead of the expected result (label placed on bottom centered) I got this



enter image description here



I don't think that imagemagick has a bug. So, what am I doing wrong?



Here the version's info



convert -version



GraphicsMagick 1.4 snapshot-20181020 Q16
http://www.GraphicsMagick.org/ Copyright (C) 2002-2018 GraphicsMagick
Group. Additional copyrights and licenses apply to this software. See
http://www.GraphicsMagick.org/www/Copyright.html for details.



Feature Support: Native Thread Safe yes Large Files (> 32
bit) yes Large Memory (> 32 bit) yes BZIP

yes DPS no FlashPix no

FreeType yes Ghostscript (Library) no JBIG

yes JPEG-2000 no JPEG yes

Little CMS yes Loadable Modules no OpenMP

yes (201511) PNG yes TIFF

yes TRIO no UMEM no WebP
yes WMF yes X11 yes

XML yes ZLIB yes



Host type: x86_64-pc-linux-gnu



Configured using the command: ./configure '--build'
'x86_64-linux-gnu' '--enable-shared' '--enable-static'
'--enable-libtool-verbose' '--prefix=/usr'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--docdir=${prefix}/share/doc/graphicsmagick'
'--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x'
'--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11'
'--without-dps' '--without-modules' '--without-frozenpaths'
'--with-webp' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor'
'--enable-quantum-library-names' '--with-quantum-depth=16'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security'



Final Build Parameters: CC = gcc CFLAGS = -fopenmp -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2 CXX = g++ CXXFLAGS = -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -pthread LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/X11
-L/usr/lib/x86_64-linux-gnu LIBS = -ljbig -lwebp -lwebpmux -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread











share|improve this question


















  • 2




    Judging by the version info, you are using GraphicsMagick so I don't understand why you call it ImageMagick and tag it as such when it isn't. ImageMagick and GraphicsMagick are two different things.
    – Mark Setchell
    Nov 8 at 17:12










  • That's a point. I was not aware of this. Thanks.
    – Juergen
    Nov 8 at 17:16













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I was trying to reproduce the hint in



imagemagick: append a label under image with font size



This is my source image:



enter image description here



convert red.png -pointsize 36 label:"Test label" -gravity center -append red2.png


But instead of the expected result (label placed on bottom centered) I got this



enter image description here



I don't think that imagemagick has a bug. So, what am I doing wrong?



Here the version's info



convert -version



GraphicsMagick 1.4 snapshot-20181020 Q16
http://www.GraphicsMagick.org/ Copyright (C) 2002-2018 GraphicsMagick
Group. Additional copyrights and licenses apply to this software. See
http://www.GraphicsMagick.org/www/Copyright.html for details.



Feature Support: Native Thread Safe yes Large Files (> 32
bit) yes Large Memory (> 32 bit) yes BZIP

yes DPS no FlashPix no

FreeType yes Ghostscript (Library) no JBIG

yes JPEG-2000 no JPEG yes

Little CMS yes Loadable Modules no OpenMP

yes (201511) PNG yes TIFF

yes TRIO no UMEM no WebP
yes WMF yes X11 yes

XML yes ZLIB yes



Host type: x86_64-pc-linux-gnu



Configured using the command: ./configure '--build'
'x86_64-linux-gnu' '--enable-shared' '--enable-static'
'--enable-libtool-verbose' '--prefix=/usr'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--docdir=${prefix}/share/doc/graphicsmagick'
'--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x'
'--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11'
'--without-dps' '--without-modules' '--without-frozenpaths'
'--with-webp' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor'
'--enable-quantum-library-names' '--with-quantum-depth=16'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security'



Final Build Parameters: CC = gcc CFLAGS = -fopenmp -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2 CXX = g++ CXXFLAGS = -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -pthread LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/X11
-L/usr/lib/x86_64-linux-gnu LIBS = -ljbig -lwebp -lwebpmux -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread











share|improve this question













I was trying to reproduce the hint in



imagemagick: append a label under image with font size



This is my source image:



enter image description here



convert red.png -pointsize 36 label:"Test label" -gravity center -append red2.png


But instead of the expected result (label placed on bottom centered) I got this



enter image description here



I don't think that imagemagick has a bug. So, what am I doing wrong?



Here the version's info



convert -version



GraphicsMagick 1.4 snapshot-20181020 Q16
http://www.GraphicsMagick.org/ Copyright (C) 2002-2018 GraphicsMagick
Group. Additional copyrights and licenses apply to this software. See
http://www.GraphicsMagick.org/www/Copyright.html for details.



Feature Support: Native Thread Safe yes Large Files (> 32
bit) yes Large Memory (> 32 bit) yes BZIP

yes DPS no FlashPix no

FreeType yes Ghostscript (Library) no JBIG

yes JPEG-2000 no JPEG yes

Little CMS yes Loadable Modules no OpenMP

yes (201511) PNG yes TIFF

yes TRIO no UMEM no WebP
yes WMF yes X11 yes

XML yes ZLIB yes



Host type: x86_64-pc-linux-gnu



Configured using the command: ./configure '--build'
'x86_64-linux-gnu' '--enable-shared' '--enable-static'
'--enable-libtool-verbose' '--prefix=/usr'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--docdir=${prefix}/share/doc/graphicsmagick'
'--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x'
'--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11'
'--without-dps' '--without-modules' '--without-frozenpaths'
'--with-webp' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor'
'--enable-quantum-library-names' '--with-quantum-depth=16'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security'



Final Build Parameters: CC = gcc CFLAGS = -fopenmp -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pthread CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2 CXX = g++ CXXFLAGS = -g -O2
-fdebug-prefix-map=/build/graphicsmagick-1.3.30+hg15796=. -fstack-protector-strong -Wformat -Werror=format-security -pthread LDFLAGS = -Wl,-z,relro -Wl,-z,now -L/usr/lib/X11
-L/usr/lib/x86_64-linux-gnu LIBS = -ljbig -lwebp -lwebpmux -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread








imagemagick






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 16:47









Juergen

513613




513613








  • 2




    Judging by the version info, you are using GraphicsMagick so I don't understand why you call it ImageMagick and tag it as such when it isn't. ImageMagick and GraphicsMagick are two different things.
    – Mark Setchell
    Nov 8 at 17:12










  • That's a point. I was not aware of this. Thanks.
    – Juergen
    Nov 8 at 17:16














  • 2




    Judging by the version info, you are using GraphicsMagick so I don't understand why you call it ImageMagick and tag it as such when it isn't. ImageMagick and GraphicsMagick are two different things.
    – Mark Setchell
    Nov 8 at 17:12










  • That's a point. I was not aware of this. Thanks.
    – Juergen
    Nov 8 at 17:16








2




2




Judging by the version info, you are using GraphicsMagick so I don't understand why you call it ImageMagick and tag it as such when it isn't. ImageMagick and GraphicsMagick are two different things.
– Mark Setchell
Nov 8 at 17:12




Judging by the version info, you are using GraphicsMagick so I don't understand why you call it ImageMagick and tag it as such when it isn't. ImageMagick and GraphicsMagick are two different things.
– Mark Setchell
Nov 8 at 17:12












That's a point. I was not aware of this. Thanks.
– Juergen
Nov 8 at 17:16




That's a point. I was not aware of this. Thanks.
– Juergen
Nov 8 at 17:16












2 Answers
2






active

oldest

votes

















up vote
2
down vote













Thanks to Mark I was able to spot the error.



It looks like I had GraphicsMagick and ImageMagick installed in parallel and somehow they both seam to interfere each other. I really have no clue.



So I uninstalled GraphicsMagick with all dependencies (which I never used) and reinstalled ImageMagick.



Now it works as it should.






share|improve this answer





















  • Well done. Thank you for sharing.
    – Mark Setchell
    Nov 8 at 20:10


















up vote
1
down vote













In ImageMagick, label: creates a new image. So you need to append that below your red image. To do that you should use parenthesis processing to create the label: image. It is cleaner to read that way.



convert red.png ( -background white -fill black -pointsize 36 label:"Test label" ) -gravity center -append red2.png





enter image description here



See https://imagemagick.org/Usage/text/#label






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53212403%2fimagemagick-append-label-gravity-buggy%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    Thanks to Mark I was able to spot the error.



    It looks like I had GraphicsMagick and ImageMagick installed in parallel and somehow they both seam to interfere each other. I really have no clue.



    So I uninstalled GraphicsMagick with all dependencies (which I never used) and reinstalled ImageMagick.



    Now it works as it should.






    share|improve this answer





















    • Well done. Thank you for sharing.
      – Mark Setchell
      Nov 8 at 20:10















    up vote
    2
    down vote













    Thanks to Mark I was able to spot the error.



    It looks like I had GraphicsMagick and ImageMagick installed in parallel and somehow they both seam to interfere each other. I really have no clue.



    So I uninstalled GraphicsMagick with all dependencies (which I never used) and reinstalled ImageMagick.



    Now it works as it should.






    share|improve this answer





















    • Well done. Thank you for sharing.
      – Mark Setchell
      Nov 8 at 20:10













    up vote
    2
    down vote










    up vote
    2
    down vote









    Thanks to Mark I was able to spot the error.



    It looks like I had GraphicsMagick and ImageMagick installed in parallel and somehow they both seam to interfere each other. I really have no clue.



    So I uninstalled GraphicsMagick with all dependencies (which I never used) and reinstalled ImageMagick.



    Now it works as it should.






    share|improve this answer












    Thanks to Mark I was able to spot the error.



    It looks like I had GraphicsMagick and ImageMagick installed in parallel and somehow they both seam to interfere each other. I really have no clue.



    So I uninstalled GraphicsMagick with all dependencies (which I never used) and reinstalled ImageMagick.



    Now it works as it should.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 8 at 18:09









    Juergen

    513613




    513613












    • Well done. Thank you for sharing.
      – Mark Setchell
      Nov 8 at 20:10


















    • Well done. Thank you for sharing.
      – Mark Setchell
      Nov 8 at 20:10
















    Well done. Thank you for sharing.
    – Mark Setchell
    Nov 8 at 20:10




    Well done. Thank you for sharing.
    – Mark Setchell
    Nov 8 at 20:10












    up vote
    1
    down vote













    In ImageMagick, label: creates a new image. So you need to append that below your red image. To do that you should use parenthesis processing to create the label: image. It is cleaner to read that way.



    convert red.png ( -background white -fill black -pointsize 36 label:"Test label" ) -gravity center -append red2.png





    enter image description here



    See https://imagemagick.org/Usage/text/#label






    share|improve this answer



























      up vote
      1
      down vote













      In ImageMagick, label: creates a new image. So you need to append that below your red image. To do that you should use parenthesis processing to create the label: image. It is cleaner to read that way.



      convert red.png ( -background white -fill black -pointsize 36 label:"Test label" ) -gravity center -append red2.png





      enter image description here



      See https://imagemagick.org/Usage/text/#label






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        In ImageMagick, label: creates a new image. So you need to append that below your red image. To do that you should use parenthesis processing to create the label: image. It is cleaner to read that way.



        convert red.png ( -background white -fill black -pointsize 36 label:"Test label" ) -gravity center -append red2.png





        enter image description here



        See https://imagemagick.org/Usage/text/#label






        share|improve this answer














        In ImageMagick, label: creates a new image. So you need to append that below your red image. To do that you should use parenthesis processing to create the label: image. It is cleaner to read that way.



        convert red.png ( -background white -fill black -pointsize 36 label:"Test label" ) -gravity center -append red2.png





        enter image description here



        See https://imagemagick.org/Usage/text/#label







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 8 at 23:20

























        answered Nov 8 at 17:08









        fmw42

        7,00841124




        7,00841124






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53212403%2fimagemagick-append-label-gravity-buggy%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Schultheiß

            Liste der Kulturdenkmale in Wilsdruff

            Android Play Services Check