Skip to main content
Solved

Converting a TIF to a JPG

  • February 13, 2018
  • 5 replies
  • 314 views

Forum|alt.badge.img

I am trying to convert an image I have that is in TIF format to a JPG format. I've done it before but just forgot the path. If anyone has any suggestions of tips please let me know thank you!

Best answer by daveatsafe

Hi @sightglass26_,

Rather than the RasterSelector and RasterbandKeeper, it might be easier to use a RasterInterpretationCoercer to convert the raster to RGB32, which is suitable for JPG output.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

Forum|alt.badge.img
  • 275 replies
  • February 13, 2018

Hi @sightglass26_

you need a TIFF or Geo TIFF Reader and a JPEG Writer in your workspace. After you connect the two and run your translation, you will get your source tif-file converted into JPG. You can do more using Reader and Writer parameters and/or transformers.


Forum|alt.badge.img
  • Author
  • 2 replies
  • February 13, 2018

capture.jpg

Please see attached. There is an 'extra bands' error. We have it set up the way you guys showed us last time, but we are getting an error.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • Best Answer
  • February 13, 2018

Hi @sightglass26_,

Rather than the RasterSelector and RasterbandKeeper, it might be easier to use a RasterInterpretationCoercer to convert the raster to RGB32, which is suitable for JPG output.


takashi
Celebrity
  • 7843 replies
  • February 14, 2018

Hi @sightglass26_,

Rather than the RasterSelector and RasterbandKeeper, it might be easier to use a RasterInterpretationCoercer to convert the raster to RGB32, which is suitable for JPG output.

Probably "RGB32" is a typo. I suppose that "RGB24" is intended here ;-)

 

 


Forum|alt.badge.img
  • Author
  • 2 replies
  • February 14, 2018

Hi @sightglass26_,

Rather than the RasterSelector and RasterbandKeeper, it might be easier to use a RasterInterpretationCoercer to convert the raster to RGB32, which is suitable for JPG output.

Dave, great! that gets us a JPG2000 file, but I can't send that to the printer. How do I get it to a standard .jpg?