[6.1] shipping_api_ups: Shipping label returned is improperly sized/formatted

Bug #1097857 reported by Brett Lehrer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP-USA Localization
New
Undecided
Unassigned

Bug Description

When processing the shipping label, a few things go wrong. First, the requested label dimensions sent (hardcoded) in the XML confirm request are ignored because it's also requesting a GIF. Second, the GIF returned is always 800x1400 pixels, even though the label only takes up 800x1200 pixels. A single line of code after "new_im = new_im.rotate(270)" in shipping_api_ups/stock.py fixes that:

new_im = new_im.crop((0,0,800,1200))

Not cropping out that unused space results in the PDF label's aspect ratio being distorted, which may make the MaxiCode more difficult to read from a UPS scanner (and cost you money and/or your production API key).

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.