Request: save vector formats (SVG, EPS) in QtQr

Bug #2043627 reported by Se Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QR Tools
Fix Released
Medium
Ramiro Algozino

Bug Description

It seems that QtQr can only save PNG files. It would be great if a vector format could be created as well.

Related branches

Revision history for this message
Ramiro Algozino (algozino) wrote : Re: [Bug 2043627] [NEW] Request: save vector formats (SVG, EPS) in QtQr

Hi,

You should be able to save in SVG, in the save dialog change the format
filter and add the svg extension to the file name

El jue, 16 nov 2023 a la(s) 02:00, Se Li (<email address hidden>)
escribió:

> Public bug reported:
>
> It seems that QtQr can only save PNG files. It would be great if a
> vector format could be created as well.
>
> ** Affects: qr-tools
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to QR
> Tools.
> https://bugs.launchpad.net/bugs/2043627
>
> Title:
> Request: save vector formats (SVG, EPS) in QtQr
>
> Status in QR Tools:
> New
>
> Bug description:
> It seems that QtQr can only save PNG files. It would be great if a
> vector format could be created as well.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/2043627/+subscriptions
>
>

--
Ramiro Algozino
Telecommunications Engineer
https://algozino.com.ar/ <http://algozino.com.ar/>

Revision history for this message
Ramiro Algozino (algozino) wrote :

QtQR (and qr-tools) support all the same formats as qrencode. We had a bug in the supported formats detection but you could specify the extension manually in the save dialog.

Changed in qr-tools:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Ramiro Algozino (algozino)
milestone: none → 2.2
Revision history for this message
Ramiro Algozino (algozino) wrote (last edit ):

I've just pushed a fix, the save dialog should now show you all the supported formats and let you choose. It may take some time for the revision 48 to be built and available in the daily PPA.

Revision history for this message
Se Li (se-li) wrote :

I am on Arch and have just made and tested an adapted version of https://archlinux.org/packages/extra/any/qtqr/ using revision 48. The formats are all there in the format chooser. Thanks! One thing that is not working well though is the choice of a default extension (and thus format). If I set the format chooser to SVG and enter “test“ as a filename and then save, I am informed that a file “test.png” has been created. A check confirms that it is not a misnamed SVG file. That seems counterintuitive to me. The responsible code starts at line 639 in qtqr.py I think, but I don’t know how to get the status of the format chooser in order to choose the default extension better – or how to submit change suggestions here. So, no contribution from me for now beyond this nitpicking, sorry :-)

Revision history for this message
Ramiro Algozino (algozino) wrote : Re: [Bug 2043627] Re: Request: save vector formats (SVG, EPS) in QtQr

Thanks for the tip! I've noticed it too testing the fix, it's a little
weird how we handle the format detection and the default extension. I have
a workaround but I wanted to investigate it a little further and didn't
include it with the previous fix.

Thanks again for your help

Have a nice weekend!

On Sat, Nov 18, 2023, 00:40 Se Li <email address hidden> wrote:

> I am on Arch and have just made and tested an adapted version of
> https://archlinux.org/packages/extra/any/qtqr/ using revision 48. The
> formats are all there in the format chooser. Thanks! One thing that is
> not working well though is the choice of a default extension (and thus
> format). If I set the format chooser to SVG and enter “test“ as a
> filename and then save, I am informed that a file “test.png” has been
> created. A check confirms that it is not a misnamed SVG file. That seems
> counterintuitive to me. The responsible code starts at line 639 in
> qtqr.py I think, but I don’t know how to get the status of the format
> chooser in order to choose the default extension better – or how to
> submit change suggestions here. So, no contribution from me for now
> beyond this nitpicking, sorry :-)
>
> --
> You received this bug notification because you are a member of QR Tools
> Team, which is subscribed to QR Tools.
> https://bugs.launchpad.net/bugs/2043627
>
> Title:
> Request: save vector formats (SVG, EPS) in QtQr
>
> Status in QR Tools:
> Confirmed
>
> Bug description:
> It seems that QtQr can only save PNG files. It would be great if a
> vector format could be created as well.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/2043627/+subscriptions
>
>

Revision history for this message
Ramiro Algozino (algozino) wrote :

I've just pushed a workaround to the file extension detection. I think it is acceptable until we fix the underlying problem in qrtools, it will be a breaking change.

Related: #2043984

Changed in qr-tools:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.