I produced a QR code www.the-qrcode-generator.com (WARNING this seems to be a Google site), and saved it as a png file. Now the QR code is produced in black with a white background. I'd like to change the black (#FFFFFF) to blue (#0000FF). Seems pretty simple but I've hacked at this for over an hour. Here's what I've tried:
import the png
Ungroup, fill & stroke (but can't seem to apply the choices)
selecting the object and then: Extensions / Color / Replace Color: where I leave the default 000000 for the "Replace colour" and for "By color" put in 0000FF, but nothing happens
select obj, Filters / Color / Colorize, but whole png goes blue, not just the black
This is not a criticism but an observation : Inkscape is such a power and incredible program, but to do the simplest of things it's not at all intuitive, imho.
The problem is that you're using a vector software program to edit a raster file. PNG files are raster, or bitmap, files, not vector. Some of Inkscape's filters will work on rasters, but things like changing colour via Fill & Stroke only work on vector objects.
Try using Trace Bitmap to create a vector copy of your png (it's on menu Path > Trace Bitmap) and see how you go from there. It's possible the trace will not have 100% accuracy, and I don't know if that will screw up your code, but you can try playing with the settings.
When you trace the png, you'll end up with the vector object on top, and the image file underneath. Make sure you're working on the right one (look at the taskbar - if it says image, you can delete that one once it's traced)
It's been a bad hair day: trying to edit a png with a vector app. Thanks for all your replies. Going to try Tyler's suggest, but appreciate the other ideas too.
Tyler: I used the QR generator but it produces a huge code (about 9x the standard) and it would not scan.
z3z : I did a bit trace, was able to change the colour, thank you, but I was never able to export the result to a .png file. In the end I wasted so much time on this small task that I zoomed the hell out of it, did a screen capture, saved it as a .png, and imported it into my document; it's now the right colour: blue . Plus it has rounded corners that makes this QR code look like a PC board layout, making it look much cooler than the standard QR codes generated, AND it scans properly to boot.
Hi,
I produced a QR code www.the-qrcode-generator.com (WARNING this seems to be a Google site), and saved it as a png file. Now the QR code is produced in black with a white background. I'd like to change the black (#FFFFFF) to blue (#0000FF). Seems pretty simple but I've hacked at this for over an hour. Here's what I've tried:
Here's a sample: https://mega.nz/file/7pMSDZaQ#gtYo2l5r7_DDKjevUzoLvfCnX_we5aegP6DPS_BBNfY
This is not a criticism but an observation : Inkscape is such a power and incredible program, but to do the simplest of things it's not at all intuitive, imho.
Help please,
Christian M
Hi, welcome to the forum.
The problem is that you're using a vector software program to edit a raster file. PNG files are raster, or bitmap, files, not vector. Some of Inkscape's filters will work on rasters, but things like changing colour via Fill & Stroke only work on vector objects.
Try using Trace Bitmap to create a vector copy of your png (it's on menu Path > Trace Bitmap) and see how you go from there. It's possible the trace will not have 100% accuracy, and I don't know if that will screw up your code, but you can try playing with the settings.
When you trace the png, you'll end up with the vector object on top, and the image file underneath. Make sure you're working on the right one (look at the taskbar - if it says image, you can delete that one once it's traced)
That page is able to export as svg. Png is a bitmap / raster format. Inkscape is mostly a vector editor.
Just export to svg instead from the qr code generator page.
Or - just use Inkscape's QR generator ( which is built in as an extension )
Extensions>Render>Barcode>QR Code.
This.
:-)
Yup,
It's been a bad hair day: trying to edit a png with a vector app. Thanks for all your replies. Going to try Tyler's suggest, but appreciate the other ideas too.
Cheers,
Christian
Update,
Tyler: I used the QR generator but it produces a huge code (about 9x the standard) and it would not scan.
z3z : I did a bit trace, was able to change the colour, thank you, but I was never able to export the result to a .png file. In the end I wasted so much time on this small task that I zoomed the hell out of it, did a screen capture, saved it as a .png, and imported it into my document; it's now the right colour: blue . Plus it has rounded corners that makes this QR code look like a PC board layout, making it look much cooler than the standard QR codes generated, AND it scans properly to boot.
Thx all,
cheers
xian (Christian thinner)
I came late to this party, but I brought something good.
The secret's in the Layer Blend Mode.
And you gave me a unique opportunity for a recursive forum post.