Image size is 10 times after making a small change #881
Unanswered
AdeelShadmanQureshi
asked this question in
Help
Replies: 1 comment 8 replies
-
Can you please share an input and output image that demonstrates the problem? |
Beta Was this translation helpful? Give feedback.
8 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been asked to draw a rectangle over tiff/pdf/png/jpg file of a given size at a given coordinates.
I am using ImageMagick (Magick.NET-Q16-AnyCPU ver 7.23.2.1) for it as it supports TIFF out of the box and using GhostScript it can support PDF.
Using the following code I can add rectangles to any page at a given coordinates.
However once the rectangle is added - the final file size is 10 times larger than the original file which was fed to the above function.
I tried few things to reduce size by adding compression, scaling and optimiser but nothing worked. I am sure I must be missing something.
Thanks
Note: I posted this question on stackoverflow and someone suggested about bit depth. I checked using the Depth property and it stays at 16 before and after the image manipulation.
Beta Was this translation helpful? Give feedback.
All reactions