pcb

PNG exporter does not accept size constraints

Bug #1036195 reported by Patrick Bernaud on 2012-08-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA project
Medium
Unassigned
pcb
Medium
Unassigned

Bug Description

When exporting to PNG and setting 'dpi' to 0 and any pixel sizes to a non zero value (i.e. constraining the size of output image), no image is produced.

The following message is issued ont the console:

gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully

and this one to the application log:

png_do_export(): gdImageCreate(256, -41) returned NULL. Aborting export.

The negative value passed to gdImageCreate() is the result of an overflow of the (32 bits) Coord variable used for computing the size of the image.

Bert Timmerman (bert-timmerman) wrote :

FWIW.

Kind regards,

Bert Timmerman.

Bert Timmerman (bert-timmerman) wrote :

Pushed topic branch LP1036195 to upstream.

Patch #0002 is obsolete.

Traumflug (mah-jump-ing) wrote :

Nobody brave enough to pick this branch to master?

Well, I did, and removed the topic branch. Thank you for the patch, Patrick.

Changed in pcb:
importance: Undecided → Medium
status: New → Fix Committed
Traumflug (mah-jump-ing) on 2015-09-27
Changed in geda-project:
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers