lokeshj / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Printing gif image cuts off in half #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sending image to print (1Z642V7X0391526769.gif)

2. This is what I'm getting (1Z642V7X0391526769_result.gif screenshot)
it cuts off half of the label

Is it possible to print to fit on the page?

Thank you.

Original issue reported on code.google.com by bell2...@gmail.com on 3 Jul 2012 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
What you've just exposed is a bug with image scaling.

The image that you are printing is the largest I've seen in the bug reports, 
1400x800 pixels and when divided by 72dpi, it still is larger than a standard 
sheet of paper.

For now, you should be able to use something like GD or ImageMagic (PHP) to 
scale the image before sending to the applet.  50% size seems to fit pretty 
nicely.

I'm leaving this bug open because future versions of applet should be able to 
do scaling automatically.

-Tres

Original comment by tres.fin...@gmail.com on 4 Jul 2012 at 6:17

Attachments:

GoogleCodeExporter commented 9 years ago
I did what you advise but now the image comes up blurry. It comes up to fit on 
the page. Is there any way to set Print The Actual size?

Thanks in advance.

Original comment by bell2...@gmail.com on 5 Jul 2012 at 4:04

GoogleCodeExporter commented 9 years ago
here is the attachment

Original comment by bell2...@gmail.com on 5 Jul 2012 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by bell2...@gmail.com on 5 Jul 2012 at 4:12

Attachments:

GoogleCodeExporter commented 9 years ago
Not currently.  A code enhancement could support this.  If you have a deadline 
you need this feature by, please email tres.finocchiaro@gmail.com and we can 
discuss options.

Original comment by tres.fin...@gmail.com on 5 Jul 2012 at 5:50

GoogleCodeExporter commented 9 years ago
Could you please give a hint how to fix this issue? We are using jZebra in our 
application and currently scaling doesn't work properly.

Original comment by meze...@gmail.com on 11 Jul 2012 at 8:48

GoogleCodeExporter commented 9 years ago
@mezerny:

Its been a while since I've used PHP to scale images, but either GD or 
ImageMagic are server-side solutions that may be able to help.

As the OP suggested, some blurring may occur.

If you are not using PHP, there should still be a solution.  It will be the 
same library that does thumb-nailing for your application.

Work should begin on this bug soon, so please "star" it in the top left corner, 
and you will be notified of any changes.

-Tres

Original comment by tres.fin...@gmail.com on 11 Jul 2012 at 1:26

GoogleCodeExporter commented 9 years ago
Support for this feature is in progress and will be added in version 1.4.5 or 
higher.

Original comment by tres.fin...@gmail.com on 22 Aug 2012 at 6:00