Adding a logo to QR Code using ImageMagick












0














I'm trying to add a logo to a QR Code image. Logo image area must be lower than 12% of the QR code area, in order to be easily used by the consumers.



The problem is that the output file must be in EPS format. So it means that I can't play with it in ImageMagick. I'm well aware of the fact that working with vector graphics is complex. I have the logo and the QR code in EPS format. In order to create that "safe margin", I created a canvas 10% larger than logo, composited canvas and logo into a padded logo, resized the new file (via -density option) to 12% of the original QR code area and composited them.



The result was disappointing: No scanner could scan it.
The result I tried resizing the canvas to 10% of image area, still no good.



Keep that in mind that the QR is going to be carved on a physical plate, that's why I need vector output.










share|improve this question






















  • When trying to embed an image in a QR code, try not to cut off any “blocks”. Also, you can always add more redundancy to the QR code.
    – Daniel B
    Dec 2 at 12:29










  • That's exactly my problem: how to not to cut off any "blocks"?
    – BlackSuited
    Dec 2 at 13:34










  • You’ll have to improve the positioning of the embedded image...? It can’t be that hard. You could always use a GUI vector graphics editor.
    – Daniel B
    Dec 2 at 13:38
















0














I'm trying to add a logo to a QR Code image. Logo image area must be lower than 12% of the QR code area, in order to be easily used by the consumers.



The problem is that the output file must be in EPS format. So it means that I can't play with it in ImageMagick. I'm well aware of the fact that working with vector graphics is complex. I have the logo and the QR code in EPS format. In order to create that "safe margin", I created a canvas 10% larger than logo, composited canvas and logo into a padded logo, resized the new file (via -density option) to 12% of the original QR code area and composited them.



The result was disappointing: No scanner could scan it.
The result I tried resizing the canvas to 10% of image area, still no good.



Keep that in mind that the QR is going to be carved on a physical plate, that's why I need vector output.










share|improve this question






















  • When trying to embed an image in a QR code, try not to cut off any “blocks”. Also, you can always add more redundancy to the QR code.
    – Daniel B
    Dec 2 at 12:29










  • That's exactly my problem: how to not to cut off any "blocks"?
    – BlackSuited
    Dec 2 at 13:34










  • You’ll have to improve the positioning of the embedded image...? It can’t be that hard. You could always use a GUI vector graphics editor.
    – Daniel B
    Dec 2 at 13:38














0












0








0







I'm trying to add a logo to a QR Code image. Logo image area must be lower than 12% of the QR code area, in order to be easily used by the consumers.



The problem is that the output file must be in EPS format. So it means that I can't play with it in ImageMagick. I'm well aware of the fact that working with vector graphics is complex. I have the logo and the QR code in EPS format. In order to create that "safe margin", I created a canvas 10% larger than logo, composited canvas and logo into a padded logo, resized the new file (via -density option) to 12% of the original QR code area and composited them.



The result was disappointing: No scanner could scan it.
The result I tried resizing the canvas to 10% of image area, still no good.



Keep that in mind that the QR is going to be carved on a physical plate, that's why I need vector output.










share|improve this question













I'm trying to add a logo to a QR Code image. Logo image area must be lower than 12% of the QR code area, in order to be easily used by the consumers.



The problem is that the output file must be in EPS format. So it means that I can't play with it in ImageMagick. I'm well aware of the fact that working with vector graphics is complex. I have the logo and the QR code in EPS format. In order to create that "safe margin", I created a canvas 10% larger than logo, composited canvas and logo into a padded logo, resized the new file (via -density option) to 12% of the original QR code area and composited them.



The result was disappointing: No scanner could scan it.
The result I tried resizing the canvas to 10% of image area, still no good.



Keep that in mind that the QR is going to be carved on a physical plate, that's why I need vector output.







imagemagick qr-code






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 2 at 9:03









BlackSuited

1




1












  • When trying to embed an image in a QR code, try not to cut off any “blocks”. Also, you can always add more redundancy to the QR code.
    – Daniel B
    Dec 2 at 12:29










  • That's exactly my problem: how to not to cut off any "blocks"?
    – BlackSuited
    Dec 2 at 13:34










  • You’ll have to improve the positioning of the embedded image...? It can’t be that hard. You could always use a GUI vector graphics editor.
    – Daniel B
    Dec 2 at 13:38


















  • When trying to embed an image in a QR code, try not to cut off any “blocks”. Also, you can always add more redundancy to the QR code.
    – Daniel B
    Dec 2 at 12:29










  • That's exactly my problem: how to not to cut off any "blocks"?
    – BlackSuited
    Dec 2 at 13:34










  • You’ll have to improve the positioning of the embedded image...? It can’t be that hard. You could always use a GUI vector graphics editor.
    – Daniel B
    Dec 2 at 13:38
















When trying to embed an image in a QR code, try not to cut off any “blocks”. Also, you can always add more redundancy to the QR code.
– Daniel B
Dec 2 at 12:29




When trying to embed an image in a QR code, try not to cut off any “blocks”. Also, you can always add more redundancy to the QR code.
– Daniel B
Dec 2 at 12:29












That's exactly my problem: how to not to cut off any "blocks"?
– BlackSuited
Dec 2 at 13:34




That's exactly my problem: how to not to cut off any "blocks"?
– BlackSuited
Dec 2 at 13:34












You’ll have to improve the positioning of the embedded image...? It can’t be that hard. You could always use a GUI vector graphics editor.
– Daniel B
Dec 2 at 13:38




You’ll have to improve the positioning of the embedded image...? It can’t be that hard. You could always use a GUI vector graphics editor.
– Daniel B
Dec 2 at 13:38















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1380140%2fadding-a-logo-to-qr-code-using-imagemagick%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2fsuperuser.com%2fquestions%2f1380140%2fadding-a-logo-to-qr-code-using-imagemagick%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

Plaza Victoria

Puebla de Zaragoza

Musa