tmeiczin / opendcp

Created digital cinemas packages (DCP)
http://www.opendcp.org
GNU General Public License v3.0
121 stars 52 forks source link

JPEG2000 images are distorted when using BMP source images #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.try to enter one BMP in this resolution : 1998*1080 (flat cinema)
2.try to convert it into jp2k file (in order to create a still picture DCP for 
instance)
3.the jp2k picture is totally wrong and also the DCP.

What is the expected output? What do you see instead?
We expect a good jp2k picture but, the conversion gives a strange picture just 
like in the attached file. It only happens with 1998*1080 bmp picture file. 
2048*1080 bmp files and 1920*1080 bmp files work correctly and 1998*1080 tiff 
files work correctly too. I tested all those dimensions with bmp and tiff. The 
problem only deals with 1998*1080 BMP files.

What version of the product are you using? On what operating system?
0.26 Open DCP - on WIndows 7 OS

Please provide any additional information below.
I tested several times with different pictures and I confirm that there is only 
a problem with 1998*1080 BMP files. 1920*1080 and 2048*1080 dimensions in BMP 
work and every dimensions (including 1998*1080) in Tiff work.

Original issue reported on code.google.com by thierry....@gmail.com on 21 Oct 2012 at 11:21

Attachments:

GoogleCodeExporter commented 9 years ago
Could you attach the original source image? Thanks!

Original comment by terrenc...@gmail.com on 21 Oct 2012 at 7:25

GoogleCodeExporter commented 9 years ago
Yes, of course. you'll find it there... the original 1998*1080 bmp files.

Original comment by thierry....@gmail.com on 23 Oct 2012 at 6:02

Attachments:

GoogleCodeExporter commented 9 years ago
I made some test with this picture. in the original size 1998*1080, it doesn't 
work bet try to resize it in 1920*1080 or 2048*1080, it will work. strange 
thing...

Original comment by thierry....@gmail.com on 23 Oct 2012 at 6:04

GoogleCodeExporter commented 9 years ago
Try saving the image as 32-bit and then doing the conversion.

Original comment by terrenc...@gmail.com on 28 Oct 2012 at 5:08

GoogleCodeExporter commented 9 years ago
Hello Terrence.
Thanks.
I've just try to save the BMP into a 32bit BMP with GIMP and then I tried to 
open it back with OPEN DCP ... It crashed completely, refusing to open the 
directory whare I put the new 32 bit BMP picture.
And even if it had worked, it wouldn't explain why other dimensions (2048 and 
1920) in 8 or 16 bits BMP work while 1998*1080 doesn't, am I wrong?
Thank you again.

Original comment by thierry....@gmail.com on 28 Oct 2012 at 4:42

GoogleCodeExporter commented 9 years ago
The issue has to do with 24-bit (8bpp RGB) images. 32-bit images (8bpp RGBA) 
should work fine. I don't know how GIMP saves BMPs. I took the BMP you 
uploaded, opened it in Photoshop and saved it as 32-bit and it worked. OpenDCP 
does not support anything less than 24-bit... well right now it only support 
32-bit.

Original comment by terrenc...@gmail.com on 28 Oct 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Ok thank you, Terrence.
I finally saved my 1998*1080 BMP into tiff file and it worked but I'll remember 
it if I face the same issue a next time.

Original comment by thierry....@gmail.com on 30 Oct 2012 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by terrenc...@gmail.com on 30 Oct 2012 at 3:30