Page 1 of 1

How to creating a MSB(Motorola) Tiff

Posted: 2014-02-03T02:53:44-07:00
by markimarki27
I need to create a Motorola Tiff for a legacy app. so i can replace image alchemy.

when i do the following

convert logo: -endian MSB logo.tiff

the resulting tiff file has II as the first 2 bytes and not MM as per the motorola Tiff spec.
also the identify shows endian MSB but then endian LSB in the tiff property section.

am i missing an option?

Thanks

Mark

identify -verbose shows the following

Code: Select all

Image: logo.tiff
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: PseudoClass
  Geometry: 640x480+0+0
  Units: PixelsPerInch
  Type: Palette
  Base type: Palette
  Endianess: MSB
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
      min: 4 (0.0156863)
      max: 255 (1)
      mean: 229.323 (0.899307)
      standard deviation: 69.3423 (0.271931)
      kurtosis: 4.45973
      skewness: -2.49768
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 226.217 (0.887127)
      standard deviation: 70.8689 (0.277917)
      kurtosis: 3.37246
      skewness: -2.24758
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 229.064 (0.898288)
      standard deviation: 64.1018 (0.251379)
      kurtosis: 4.65272
      skewness: -2.42185
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 228.201 (0.894907)
      standard deviation: 68.166 (0.267318)
      kurtosis: 4.14821
      skewness: -2.39288
  Colors: 256
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 640x480+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: TopLeft
  Properties:
    date:create: 2014-02-01T14:12:21+00:00
    date:modify: 2014-02-03T09:38:19+00:00
    signature: 5c701306a9a985a0c93c8d11a1e761d7f8637577697fc60d7189b221388f8edf
    tiff:document: logo.tiff
    tiff:endian: lsb
    tiff:photometric: palette
    tiff:rows-per-strip: 12
  Artifacts:
    filename: logo.tiff
    verbose: true
  Tainted: False
  Filesize: 309KB
  Number pixels: 307K
  Pixels per second: 9.223372EB
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.8.8-2 Q8 x86 2014-01-09 http://w
ww.imagemagick.org

Re: How to creating a MSB(Motorola) Tiff

Posted: 2014-02-03T05:27:46-07:00
by magick
Add -define tiff:endian=msb to your command line.

Re: How to creating a MSB(Motorola) Tiff

Posted: 2014-02-03T06:30:14-07:00
by markimarki27
Many thanks. That sets the Tiff to the MM and big endian as required.

Kind regards

Mark