Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to make sure QR code is rendered using CMYK? #301

moseleyi started this conversation in General
Discussion options

I can't find a configuration or setting to make sure the values for colours are in CMYK not RGB. Is it possible?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

This depends entirely on the underlying output module. The EPS output supports CMYK, SVG supports whatever you supply as color value, and for everything else, your best bet is the ImageMagick output, which allows you to specify one of various output formats via the imagickFormat option.

You must be logged in to vote
0 replies
Comment options

I tried EPS with Imagick but every time I use it it would rasterize it and I need to preserve the vector
...
On 2025年3月12日 at 23:42, smiley ***@***.***> wrote: This depends entirely on the underlying output module. The EPS output supports CMYK <https://github.com/chillerlan/php-qrcode/blob/b5ff1258a9a8bf6eff15d8c12365400ba60d652c/src/Output/QREps.php#L75>, SVG supports whatever you supply as color value <https://developer.mozilla.org/en-US/docs/Web/CSS/color_value>, and for everything else, your best bet is the ImageMagick output, which allows you to specify one of various output formats <https://www.imagemagick.org/script/formats.php> via the imagickFormat option. — Reply to this email directly, view it on GitHub <#301 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AD3CMBUNF64SCLLSBY22BDL2UCZ6XAVCNFSM6AAAAABY4RNOL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBYGA4TOOA> . You are receiving this because you authored the thread.Message ID: ***@***.***>
-- Kind regards, *Dawid Nawrot* <https://lemon-art.pl>
You must be logged in to vote
1 reply
Comment options

Ah I see - it's even in their documentation

IM is a 'raster image processor'

So I'm assuming you want to output EPS - have you tried the QREps output module then? It's not as fancy as the others, but it gets the job done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /