Help me build an ImageMagick command

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Given a 1024x1024 .png image (RGB) I'm trying to get a 1024x1024 .png image with transparent background where the source image is resised at 810px, centered, has rounded corners, and applied the following effects (the non-transparent part, I mean):




effect: 'inner-shadow',
color: 'rgba(255, 255, 255, 0.2)',
translateY: 5.3
,

effect: 'inner-shadow',
color: 'rgba(0, 0, 0, 0.2)',
translateY: -5.3
,

effect: 'fill-radialgradient',
centerX: 0,
centerY: 0,
radius: 1024,
colors: [
offset: 0, color: 'rgba(255,255,255,.1)' ,
offset: 1.0, color: 'rgba(255,255,255,0)'
]
,

effect: 'outer-shadow',
color: 'rgba(0, 0, 0, 0.3)',
blur: 15,
translateY: 15



At this point I only managed to achieve rounded corners:



convert source.png 
( +clone -alpha extract
-draw 'fill black polygon 0,0 0,80 80,0 fill white circle 80,80 80,0'
( +clone -flip ) -compose Multiply -composite
( +clone -flop ) -compose Multiply -composite
) -alpha off -compose CopyOpacity -composite target.png






share|improve this question

























    up vote
    0
    down vote

    favorite












    Given a 1024x1024 .png image (RGB) I'm trying to get a 1024x1024 .png image with transparent background where the source image is resised at 810px, centered, has rounded corners, and applied the following effects (the non-transparent part, I mean):




    effect: 'inner-shadow',
    color: 'rgba(255, 255, 255, 0.2)',
    translateY: 5.3
    ,

    effect: 'inner-shadow',
    color: 'rgba(0, 0, 0, 0.2)',
    translateY: -5.3
    ,

    effect: 'fill-radialgradient',
    centerX: 0,
    centerY: 0,
    radius: 1024,
    colors: [
    offset: 0, color: 'rgba(255,255,255,.1)' ,
    offset: 1.0, color: 'rgba(255,255,255,0)'
    ]
    ,

    effect: 'outer-shadow',
    color: 'rgba(0, 0, 0, 0.3)',
    blur: 15,
    translateY: 15



    At this point I only managed to achieve rounded corners:



    convert source.png 
    ( +clone -alpha extract
    -draw 'fill black polygon 0,0 0,80 80,0 fill white circle 80,80 80,0'
    ( +clone -flip ) -compose Multiply -composite
    ( +clone -flop ) -compose Multiply -composite
    ) -alpha off -compose CopyOpacity -composite target.png






    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Given a 1024x1024 .png image (RGB) I'm trying to get a 1024x1024 .png image with transparent background where the source image is resised at 810px, centered, has rounded corners, and applied the following effects (the non-transparent part, I mean):




      effect: 'inner-shadow',
      color: 'rgba(255, 255, 255, 0.2)',
      translateY: 5.3
      ,

      effect: 'inner-shadow',
      color: 'rgba(0, 0, 0, 0.2)',
      translateY: -5.3
      ,

      effect: 'fill-radialgradient',
      centerX: 0,
      centerY: 0,
      radius: 1024,
      colors: [
      offset: 0, color: 'rgba(255,255,255,.1)' ,
      offset: 1.0, color: 'rgba(255,255,255,0)'
      ]
      ,

      effect: 'outer-shadow',
      color: 'rgba(0, 0, 0, 0.3)',
      blur: 15,
      translateY: 15



      At this point I only managed to achieve rounded corners:



      convert source.png 
      ( +clone -alpha extract
      -draw 'fill black polygon 0,0 0,80 80,0 fill white circle 80,80 80,0'
      ( +clone -flip ) -compose Multiply -composite
      ( +clone -flop ) -compose Multiply -composite
      ) -alpha off -compose CopyOpacity -composite target.png






      share|improve this question













      Given a 1024x1024 .png image (RGB) I'm trying to get a 1024x1024 .png image with transparent background where the source image is resised at 810px, centered, has rounded corners, and applied the following effects (the non-transparent part, I mean):




      effect: 'inner-shadow',
      color: 'rgba(255, 255, 255, 0.2)',
      translateY: 5.3
      ,

      effect: 'inner-shadow',
      color: 'rgba(0, 0, 0, 0.2)',
      translateY: -5.3
      ,

      effect: 'fill-radialgradient',
      centerX: 0,
      centerY: 0,
      radius: 1024,
      colors: [
      offset: 0, color: 'rgba(255,255,255,.1)' ,
      offset: 1.0, color: 'rgba(255,255,255,0)'
      ]
      ,

      effect: 'outer-shadow',
      color: 'rgba(0, 0, 0, 0.3)',
      blur: 15,
      translateY: 15



      At this point I only managed to achieve rounded corners:



      convert source.png 
      ( +clone -alpha extract
      -draw 'fill black polygon 0,0 0,80 80,0 fill white circle 80,80 80,0'
      ( +clone -flip ) -compose Multiply -composite
      ( +clone -flop ) -compose Multiply -composite
      ) -alpha off -compose CopyOpacity -composite target.png








      share|improve this question












      share|improve this question




      share|improve this question








      edited Jun 7 at 14:12









      Jesse_b

      10.2k22658




      10.2k22658









      asked Jun 7 at 14:05









      David

      32




      32

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448437%2fhelp-me-build-an-imagemagick-command%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448437%2fhelp-me-build-an-imagemagick-command%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)