5

Is there any way to convert .jpeg to .tiff file?

If yes, then how to do that?

There are many library in Python that can convert file from one format to another.

But, I have not found anything for this problem.

Thanks in advance!

3 Answers 3

9

see this

from PIL import Image
im = Image.open('yourImg.jpg')
im.save("pathToSave/hello.tiff", 'TIFF')
Sign up to request clarification or add additional context in comments.

Comments

1

According to OpenCV docs for functions used for image and video reading and writing imread does support JPEG files and imwrite can save TIFF files, though with some limitations:

Only 8-bit (or 16-bit unsigned (CV_16U) in case of PNG, JPEG 2000, and TIFF) single-channel or 3-channel (with ‘BGR’ channel order) images can be saved using this function.

Comments

0

You can use PIL (Python Imaging Library) for this:

import Image
im = Image.open('test.jpg')
im.save('test.tiff')  # or 'test.tif'

Also, this was the first result for your problem on Google, make sure you google extensively first.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.