In IM 6.7.3-2 a conversion from TIFF to JP2 loses the resolu
In IM 6.7.3-2 a conversion from TIFF to JP2 loses the resolu
There is no resolution in the converted file
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: In IM 6.7.3-2 a conversion from TIFF to JP2 loses the re
Please define "no resolution". Can you post your exact command line and the input image you used?
Re: In IM 6.7.3-2 a conversion from TIFF to JP2 loses the re
I mean resolution - DPI
In IrfanView - Image properties I have
for the tiff - Resolution:72 x 72 DPI
for the jp2 - Resolution: <nothing>
If it helps I can get the metadata for both files with ExifTool.
I converted with the same result using both:
%IMMA_HOME%\convert *.tif -set filename:t %t ..\Data_final\%[filename:t].jp2
and
%IMMA_HOME%\convert *.tif -set filename:t %t -units PixelsPerInch -density 72x72 ..\Data_final\%[filename:t].jp2
If it is important to have the files - tell me how to attach a file to the post.
In IrfanView - Image properties I have
for the tiff - Resolution:72 x 72 DPI
for the jp2 - Resolution: <nothing>
If it helps I can get the metadata for both files with ExifTool.
I converted with the same result using both:
%IMMA_HOME%\convert *.tif -set filename:t %t ..\Data_final\%[filename:t].jp2
and
%IMMA_HOME%\convert *.tif -set filename:t %t -units PixelsPerInch -density 72x72 ..\Data_final\%[filename:t].jp2
If it is important to have the files - tell me how to attach a file to the post.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: In IM 6.7.3-2 a conversion from TIFF to JP2 loses the re
Perhaps you have an imbedded jpg in your tif. I don't really know. But the following works just fine for me on IM 6.7.3.9 Q16 Mac OSX Tiger
convert rose: -density 72 rose.tif
convert rose.tif rose.jp2
identify -verbose rose.jp2
Image: rose.jp2
Format: JP2 (JPEG-2000 File Format Syntax)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 72x72
What version of IM are you using, what platform and what version of the Jasper delegate library.?
convert rose: -density 72 rose.tif
convert rose.tif rose.jp2
identify -verbose rose.jp2
Image: rose.jp2
Format: JP2 (JPEG-2000 File Format Syntax)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 72x72
What version of IM are you using, what platform and what version of the Jasper delegate library.?
Re: In IM 6.7.3-2 a conversion from TIFF to JP2 loses the re
Yes, I apologize. This was false alarm. ImageMagick's identify does show the right resolution.
I was misled by ExifTool and IrfanView showing the Resolution field without any value.
I was misled by ExifTool and IrfanView showing the Resolution field without any value.