pcb

PNG exporter does not accept size constraints

Bug #1036195 reported by Patrick Bernaud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Fix Released
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.

Revision history for this message
Patrick Bernaud (patrickb) wrote :
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

FWIW.

Kind regards,

Bert Timmerman.

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Pushed topic branch LP1036195 to upstream.

Patch #0002 is obsolete.

Revision history for this message
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)
Changed in geda-project:
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Chad Parker (parker-charles) wrote :

Long since released.

Changed in pcb:
status: Fix Committed → 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.