Quantcast
Channel: Justin Shafer
Viewing all articles
Browse latest Browse all 123

Polono P60 UPS Download.Gif Converter

$
0
0

 Hi!

I recently bought a Polono P60 Mailing Label Printer off of Amazon. It claims it is compatible with just about everything so of course I bought it. Boy was I stupid!

Anyways, I thought I would write a program where you could download a ups mailing label and convert it to something printable on the printer without doing much effort at all.

Here is the program:

http://onsitedentalsystems.com/PolonoUPS_Installer.exe

https://github.com/jshafer817/Polono-UPS-Converter



You run it, and it wants the download.gif file.. this file is originally 1400x800 so I convert it to 800x1200 after removing the 200 pixels of dead space. Then I slightly reduce the image a bit while maintaining resolution, then I set the Density so the PDF is truly 4x6. 

It took some work! This was done with ImageMagick's Magick.NET and PDFium.

With just using the ImageMagick convert utility these 2 lines would do the conversion so the goal was to convert this into a program:

convert.exe download.gif -rotate 90 -gravity South -chop 0x200 cropped.gif

convert.exe cropped.gif -gravity Center -background rgb(255,255,255) -scale 760x1140 -extent 800x1200 cropped2.gif

I went as far as reverse engineering the UPS Thermal Printer app that you can install off the UPS website. It seems this is a language issue as UPS supports different languages but not TSPL.






Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>