How to properly scale images when using '-o media=' options for labal sizes with a height of less than 2in (or 25mm) #134
Unanswered
Suthi-Zebra
asked this question in
Q&A
Replies: 1 comment
-
|
What OS are you doing this on? It could be a default margins thing... You can try using "-o media-col={media-size={x-dimension=5080 y-dimension=2540} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0}" for 2x1 and "-o media-col={media-size={x-dimension=7620 y-dimension=2540} media-bottom-margin=0 media-left-margin=0 media-right-margin=0 media-top-margin=0}" for 3x1 labels. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am working on creating images of relatively small label sizes (2x1in, 3x1in) and require final images for both URF and PWG raster. I have noticed that for label sizes with a height of less than 2 inches, these do not render properly. For example, using a height of 1 inch, the images look to be scaled down to only a pixel dot.
First, I generate labels in pixels (e.g. 192x96 for 2x1in, 288x96 for 3x1in, etc.) as source images in both JPEG and PNG. Then I try to run the
ipptransformcommand to create the image. Here is an example of the command I use:./tools/ipptransform -v -i image/png -m image/urf -f test.urf -o image-orientation=3 -o print-scaling=fit -o "media=na_label_2x1in" 192x96.pngI have verified the issue is with heights of less than 2 inch because when testing with a 2x2 square label via
-o "media=na_label_2x2in"I get the original full image to fit on this size, albeit the image is scaled smaller and does not fit the entire width of this final URF image, perhaps due to margins:When changing the height to 1 using
-o "media=na_label_2x2in", it does not render properly at all:I have tried adding various combinations of options such as
x-image-position,y-image-position,x-image-shift,y-image-shift, and somemedia-coloptions but I am a loss with the possible options I can try and cannot get any coherent image to produce with any heights of 1 inch.My goal is to get a 1-to-1 correspondence, where the generated image in pixels will fit neatly on the printer label (e.g. 192x96 on 2x1 physical label) when sent via IPP.
Beta Was this translation helpful? Give feedback.
All reactions