Re: conversion from .tif to .jpeg

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: conversion from .tif to .jpeg

Edward Cannon-2
It probably means that the file is corrupt. Try opening the file with another program.  



On Nov 18, 2011, at 9:18 AM, Josef Erlinger <[hidden email]> wrote:

Hi there,
I tried to convert .tif to .jpeg format, it works for most of the files but in some cases (at least one) I got this error message
Error Message at opening:  cannot identify image file
In the folder where the corrupt .tif lies are 19 more .tif files which were made at the same time with the same tool
all the other works except the special one.
I am pleased for any help.

Python: 2.6
PIL: 1.1.7
IDE: Eclipse Indigo

Thanks in advance

Joey
--
--

DI Josef Erlinger
IT-Systems Integrator, Software Engineer

Internationale Stiftung Mozarteum Salzburg
Schwarzstr. 26
5020 Salzburg, Austria
T +43 (0) 662 889 40 65
F +43 (0) 662 889 40 68
E [hidden email]
www.mozarteum.at

Newsletter Stiftung Mozarteum
Facebook Stiftung Mozarteum
ZVR: 438729131, UID: ATU33977907

_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig

_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig
Reply | Threaded
Open this post in threaded view
|

Re: conversion from .tif to .jpeg

Igor Novikov
I think that the problem cause is a CMYKA images (i.e. CMYK images with alpha channel). PIL doesn't support such image type because internal image representation is limited by four channels. And only TIFF format provides such image type.

It would be interesting to know whether the PIL developers are planning to resolve this issue. It would be resolving at least as a workaround loading such images as a tuple of CMYK image and alpha channel as a separate grayscale image. This issue is highly important for our project.
 
--
Regards,

Igor Novikov
sK1 Project
http://sk1project.org


On Thu, Nov 24, 2011 at 8:33 PM, Edward Cannon <[hidden email]> wrote:
It probably means that the file is corrupt. Try opening the file with another program.  



On Nov 18, 2011, at 9:18 AM, Josef Erlinger <[hidden email]> wrote:

Hi there,
I tried to convert .tif to .jpeg format, it works for most of the files but in some cases (at least one) I got this error message
Error Message at opening:  cannot identify image file
In the folder where the corrupt .tif lies are 19 more .tif files which were made at the same time with the same tool
all the other works except the special one.
I am pleased for any help.

Python: 2.6
PIL: 1.1.7
IDE: Eclipse Indigo

Thanks in advance

Joey
--
--

DI Josef Erlinger
IT-Systems Integrator, Software Engineer

Internationale Stiftung Mozarteum Salzburg
Schwarzstr. 26
5020 Salzburg, Austria
T <a href="tel:%2B43%20%280%29%20662%20889%2040%2065" value="+436628894065" target="_blank">+43 (0) 662 889 40 65
F <a href="tel:%2B43%20%280%29%20662%20889%2040%2068" value="+436628894068" target="_blank">+43 (0) 662 889 40 68
E [hidden email][hidden email]
www.mozarteum.at

Newsletter Stiftung Mozarteum
Facebook Stiftung Mozarteum
ZVR: 438729131, UID: ATU33977907

_______________________________________________
Image-SIG maillist  -  [hidden email][hidden email]
http://mail.python.org/mailman/listinfo/image-sig

_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig






_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig