ImageMagic | JMagick | Transparent Image












0















Is there a way in Jmagick to make a png image transparent?



Input: A PNG image

Output: A transparent PNG image



I want the background of an image to be transparent.










share|improve this question

























  • What do you mean by making it transparent? Do you want the whole image to be fully transparent? Do you want just part of the image to fully transparent? If the latter which parts. Perhaps you should provide your image and explain what part you want transparent. In ImageMagick command line to turn some color to transparent, the command would convert image -fuzz XX% -transparent somecolor result, where XX% is some percent near the color that you want to include. Sorry, I do not know Jmagick. See transparentImage at jmagick.org/jmagick-doc

    – fmw42
    Nov 14 '18 at 4:22











  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11











  • It would help to see your input image! What is the current background? Is it a constant color? Is it some other texture or general image? We cannot help with such little information. There are too many ways to do that, which depend on the image content.

    – fmw42
    Nov 15 '18 at 6:38
















0















Is there a way in Jmagick to make a png image transparent?



Input: A PNG image

Output: A transparent PNG image



I want the background of an image to be transparent.










share|improve this question

























  • What do you mean by making it transparent? Do you want the whole image to be fully transparent? Do you want just part of the image to fully transparent? If the latter which parts. Perhaps you should provide your image and explain what part you want transparent. In ImageMagick command line to turn some color to transparent, the command would convert image -fuzz XX% -transparent somecolor result, where XX% is some percent near the color that you want to include. Sorry, I do not know Jmagick. See transparentImage at jmagick.org/jmagick-doc

    – fmw42
    Nov 14 '18 at 4:22











  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11











  • It would help to see your input image! What is the current background? Is it a constant color? Is it some other texture or general image? We cannot help with such little information. There are too many ways to do that, which depend on the image content.

    – fmw42
    Nov 15 '18 at 6:38














0












0








0








Is there a way in Jmagick to make a png image transparent?



Input: A PNG image

Output: A transparent PNG image



I want the background of an image to be transparent.










share|improve this question
















Is there a way in Jmagick to make a png image transparent?



Input: A PNG image

Output: A transparent PNG image



I want the background of an image to be transparent.







imagemagick jmagick






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 4:08







PKJ

















asked Nov 14 '18 at 3:48









PKJPKJ

9519




9519













  • What do you mean by making it transparent? Do you want the whole image to be fully transparent? Do you want just part of the image to fully transparent? If the latter which parts. Perhaps you should provide your image and explain what part you want transparent. In ImageMagick command line to turn some color to transparent, the command would convert image -fuzz XX% -transparent somecolor result, where XX% is some percent near the color that you want to include. Sorry, I do not know Jmagick. See transparentImage at jmagick.org/jmagick-doc

    – fmw42
    Nov 14 '18 at 4:22











  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11











  • It would help to see your input image! What is the current background? Is it a constant color? Is it some other texture or general image? We cannot help with such little information. There are too many ways to do that, which depend on the image content.

    – fmw42
    Nov 15 '18 at 6:38



















  • What do you mean by making it transparent? Do you want the whole image to be fully transparent? Do you want just part of the image to fully transparent? If the latter which parts. Perhaps you should provide your image and explain what part you want transparent. In ImageMagick command line to turn some color to transparent, the command would convert image -fuzz XX% -transparent somecolor result, where XX% is some percent near the color that you want to include. Sorry, I do not know Jmagick. See transparentImage at jmagick.org/jmagick-doc

    – fmw42
    Nov 14 '18 at 4:22











  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11











  • It would help to see your input image! What is the current background? Is it a constant color? Is it some other texture or general image? We cannot help with such little information. There are too many ways to do that, which depend on the image content.

    – fmw42
    Nov 15 '18 at 6:38

















What do you mean by making it transparent? Do you want the whole image to be fully transparent? Do you want just part of the image to fully transparent? If the latter which parts. Perhaps you should provide your image and explain what part you want transparent. In ImageMagick command line to turn some color to transparent, the command would convert image -fuzz XX% -transparent somecolor result, where XX% is some percent near the color that you want to include. Sorry, I do not know Jmagick. See transparentImage at jmagick.org/jmagick-doc

– fmw42
Nov 14 '18 at 4:22





What do you mean by making it transparent? Do you want the whole image to be fully transparent? Do you want just part of the image to fully transparent? If the latter which parts. Perhaps you should provide your image and explain what part you want transparent. In ImageMagick command line to turn some color to transparent, the command would convert image -fuzz XX% -transparent somecolor result, where XX% is some percent near the color that you want to include. Sorry, I do not know Jmagick. See transparentImage at jmagick.org/jmagick-doc

– fmw42
Nov 14 '18 at 4:22













I want the background of an image to be transparent. Updated my original question.

– PKJ
Nov 15 '18 at 4:11





I want the background of an image to be transparent. Updated my original question.

– PKJ
Nov 15 '18 at 4:11













It would help to see your input image! What is the current background? Is it a constant color? Is it some other texture or general image? We cannot help with such little information. There are too many ways to do that, which depend on the image content.

– fmw42
Nov 15 '18 at 6:38





It would help to see your input image! What is the current background? Is it a constant color? Is it some other texture or general image? We cannot help with such little information. There are too many ways to do that, which depend on the image content.

– fmw42
Nov 15 '18 at 6:38












1 Answer
1






active

oldest

votes


















0














Your question is quite unclear, but if you mean you want to ensure that a PNG image is saved with an alpha/transparency layer, then all you need to do is prefix the output filename with PNG32:. In the Terminal, that looks like this:



magick input.png PNG32:output.png


If you mean something else, please click edit under your question and clarify.






share|improve this answer
























  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11











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',
autoActivateHeartbeat: false,
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%2f53292923%2fimagemagic-jmagick-transparent-image%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Your question is quite unclear, but if you mean you want to ensure that a PNG image is saved with an alpha/transparency layer, then all you need to do is prefix the output filename with PNG32:. In the Terminal, that looks like this:



magick input.png PNG32:output.png


If you mean something else, please click edit under your question and clarify.






share|improve this answer
























  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11
















0














Your question is quite unclear, but if you mean you want to ensure that a PNG image is saved with an alpha/transparency layer, then all you need to do is prefix the output filename with PNG32:. In the Terminal, that looks like this:



magick input.png PNG32:output.png


If you mean something else, please click edit under your question and clarify.






share|improve this answer
























  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11














0












0








0







Your question is quite unclear, but if you mean you want to ensure that a PNG image is saved with an alpha/transparency layer, then all you need to do is prefix the output filename with PNG32:. In the Terminal, that looks like this:



magick input.png PNG32:output.png


If you mean something else, please click edit under your question and clarify.






share|improve this answer













Your question is quite unclear, but if you mean you want to ensure that a PNG image is saved with an alpha/transparency layer, then all you need to do is prefix the output filename with PNG32:. In the Terminal, that looks like this:



magick input.png PNG32:output.png


If you mean something else, please click edit under your question and clarify.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 14 '18 at 7:53









Mark SetchellMark Setchell

87.2k674175




87.2k674175













  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11



















  • I want the background of an image to be transparent. Updated my original question.

    – PKJ
    Nov 15 '18 at 4:11

















I want the background of an image to be transparent. Updated my original question.

– PKJ
Nov 15 '18 at 4:11





I want the background of an image to be transparent. Updated my original question.

– PKJ
Nov 15 '18 at 4:11


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292923%2fimagemagic-jmagick-transparent-image%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







這個網誌中的熱門文章

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Xamarin.form Move up view when keyboard appear

JBPM : POST request for execute process go wrong