We're Hiring!

Error during large image convertion

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

Error during large image convertion

Postby felix.veysseyre » Wed Dec 02, 2015 10:45 am

Hello,

I am currently trying to convert a very large JPEG image (65500px x 53090px) with bfconvert.

When I run the executable with this image, I got the following stack trace :
Code: Select all
../bftools/bfconvert -bigtiff -series 0 "/.../.../x-3.jpeg" "/.../.../TIFF/%z.%t.tiff" 2>&1
/.../.../x-3.jpeg
JPEGReader initializing /.../.../x-3.jpeg
Populating metadata
Exception in thread "main" java.lang.IllegalArgumentException: width*height > Integer.MAX_VALUE!
   at javax.imageio.ImageReader.getDestination(ImageReader.java:2823)
   at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1046)
   at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1014)
   at javax.imageio.ImageIO.read(ImageIO.java:1422)
   at javax.imageio.ImageIO.read(ImageIO.java:1326)
   at loci.formats.in.ImageIOReader.initImage(ImageIOReader.java:150)
   at loci.formats.in.ImageIOReader.initFile(ImageIOReader.java:122)
   at loci.formats.in.JPEGReader$DefaultJPEGReader.initFile(JPEGReader.java:190)
   at loci.formats.FormatReader.setId(FormatReader.java:1426)
   at loci.formats.DelegateReader.setId(DelegateReader.java:290)
   at loci.formats.in.JPEGReader.setId(JPEGReader.java:89)
   at loci.formats.ImageReader.setId(ImageReader.java:835)
   at loci.formats.tools.ImageConverter.testConvert(ImageConverter.java:367)
   at loci.formats.tools.ImageConverter.main(ImageConverter.java:874)


I am currently using this version of bfconvert:
Version: 5.1.4
VCS revision: 05840624ab3d1d1dca14d1ccfebabcb61c42ec27
Build date: 4 September 2015


Thanks for your help,
Félix
felix.veysseyre
 
Posts: 4
Joined: Wed Dec 02, 2015 8:25 am

Re: Error during large image convertion

Postby mlinkert » Thu Dec 03, 2015 4:40 pm

Hi Félix,

Thank you for mentioning this. We have plans to fix this for the next major version of Bio-Formats (5.2.0):

https://trello.com/c/M8PidMnv/58-use-jp ... peg-images

Bio-Formats won't really be able to do anything with these very large JPEG images until the issue is fixed. You might try using digital pathology-oriented software (e.g. Aperio's free ImageScope viewer) to save the file as a TIFF in the meantime.

Regards,
-Melissa
User avatar
mlinkert
Team Member
 
Posts: 353
Joined: Fri May 29, 2009 2:12 pm
Location: Southwest Wisconsin


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest