mogrify with comment removes compression (JPEG in TIFF)
Posted: 2015-11-02T05:06:46-07:00
Hello everyone,
I'm new to ImageMagick so please forgive my lack of knowledge.
I have looked at the board but could not find a solution to my problem.
So maybe you could help me out.
I have taken over a project which uses ImageMagick.
Since it was an old version of ImageMagick we decided to update to a newer version.
The version we are using is 6.9.2.5 (Operation system is Windows). We have tried Q16, Q8, static, dynamic, x64 and x86 in every combination. All versions give the same result.
The old version (which we no longer use) worked fine. I cannot give you the version number since the pc was damaged and had to be reinstalled.
The new version however does not work as expected.
We want to add a comment to a tif image (compression JPEG).
We use the following command to achieve our goal:
The command works fine and the comment is added. However the compression is lost.
So I get a 11Mb file while expecting a 180Kb file which is kind of uncool, since we add comment to quite a lot of files.
Adding a comment in the same way to a GroupFax4 compressed tiff file works fine. The compression is not removed.
I could add the following code to get the correct compression:
I get a file with about 500Kb. That is better regarding the size but still uncool since I just want to add a comment.
The older version added the comment without the loss of compression.
Want am I doing wrong? Is there some kind of global setting I have to activate or set?
Any help, hints or links will be appreciated.
Thanks in advance.
I'm new to ImageMagick so please forgive my lack of knowledge.
I have looked at the board but could not find a solution to my problem.
So maybe you could help me out.
I have taken over a project which uses ImageMagick.
Since it was an old version of ImageMagick we decided to update to a newer version.
The version we are using is 6.9.2.5 (Operation system is Windows). We have tried Q16, Q8, static, dynamic, x64 and x86 in every combination. All versions give the same result.
The old version (which we no longer use) worked fine. I cannot give you the version number since the pc was damaged and had to be reinstalled.
The new version however does not work as expected.
We want to add a comment to a tif image (compression JPEG).
We use the following command to achieve our goal:
Code: Select all
mogrify -comment SomeComment FileName
So I get a 11Mb file while expecting a 180Kb file which is kind of uncool, since we add comment to quite a lot of files.
Adding a comment in the same way to a GroupFax4 compressed tiff file works fine. The compression is not removed.
I could add the following code to get the correct compression:
Code: Select all
mogrify -compress JPEG FileName
The older version added the comment without the loss of compression.
Want am I doing wrong? Is there some kind of global setting I have to activate or set?
Any help, hints or links will be appreciated.
Thanks in advance.