Convert JPEG to TIFF 6.0 spec

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
alwaysvbnet
Posts: 2
Joined: 2019-02-21T08:14:03-07:00
Authentication code: 1152

Convert JPEG to TIFF 6.0 spec

Post by alwaysvbnet » 2019-02-21T08:19:41-07:00

Hello all,

I would like to convert an image to TIFF with compression: JPEG Original TIFF 6.0 spec.
Can this be done via this tool? I have tried the code below but the result is 'JPEG Technote #2'.

Using image As New MagickImage(File.ReadAllBytes(oImage.FilePath))
image.Settings.Compression = CompressionMethod.JPEG
image.Write(sImageConvertedFilePath)
End Using

Any ideas?

User avatar
fmw42
Posts: 25555
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert JPEG to TIFF 6.0 spec

Post by fmw42 » 2019-02-21T09:37:02-07:00

ImageMagick relies upon libtiff to read and create tiff files. If libtiff does not support it, then ImageMagick will not. So check with the libtiff forums or documentation.

I cannot say for sure, but ImageMagick has had trouble dealing with old style JPG compressed tiff files. So my guess is that libtiff does not support that. But I am not a libtiff expert.

What does JPEG technote 2 say?

alwaysvbnet
Posts: 2
Joined: 2019-02-21T08:14:03-07:00
Authentication code: 1152

Re: Convert JPEG to TIFF 6.0 spec

Post by alwaysvbnet » 2019-02-21T09:39:59-07:00

Technote 2 is not accepted in what I'm using unfortunately.

246246
Posts: 190
Joined: 2015-07-06T07:38:22-07:00
Authentication code: 1151

Re: Convert JPEG to TIFF 6.0 spec

Post by 246246 » 2019-02-25T18:36:48-07:00

ImageMagick does not have compress option for old jpeg, neither in Magick.NET.
Both libtiff and LibTiff.NET does not support OJPG for writing.
See https://manpages.debian.org/stretch/lib ... .1.en.html or https://github.com/BitMiracle/libtiff.net/issues/21

Post Reply