Microsoft images won't scale
Posted: Mon Oct 27, 2008 2:00 am
In testing the JImageFilter add-in, I was just trying a bunch of sample images. On my Windows XP box, I have the following images. I _think_ everyone running XP should have these, I believe they're just part of the OS install:
<My Documents>\My Pictures\Sample Pictures\Blue hills.jpg
<My Documents>\My Pictures\Sample Pictures\Water lillies.jpg
<My Documents>\My Pictures\Sample Pictures\Winter.jpg
When I try to scale/upload any of these images, I get the following error:
"Upload failed: javax.imageio.IIOException: Missing Huffman code table entry"
and in the Java Console, I see this:
Exception in thread "AWT-EventQueue-4" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicProgressBarUI.updateSizes(Unknown Source)
at javax.swing.plaf.basic.BasicProgressBarUI.getBox(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsProgressBarUI.getBox(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsProgressBarUI.paintIndeterminate(Unknown Source)
at javax.swing.plaf.basic.BasicProgressBarUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Maybe these images are just corrupt somehow? But they seem to open ok in most of my image processing software. And they're the sample Microsoft images on XP which means (a) I would have though they'd be valid images and (b) a lot of my own website clients might happen to choose these images when testing my site - which, if using your uploader, might have some issues.
Any ideas?
Thanks again. And sorry to be such a pain - you have already done me a great favor by implementing my features requested in the Image Preview forum!
Steve
P.S. Just in case you aren't running XP or don't happen to have those images, I'm attaching one of them to this post...
<My Documents>\My Pictures\Sample Pictures\Blue hills.jpg
<My Documents>\My Pictures\Sample Pictures\Water lillies.jpg
<My Documents>\My Pictures\Sample Pictures\Winter.jpg
When I try to scale/upload any of these images, I get the following error:
"Upload failed: javax.imageio.IIOException: Missing Huffman code table entry"
and in the Java Console, I see this:
Exception in thread "AWT-EventQueue-4" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicProgressBarUI.updateSizes(Unknown Source)
at javax.swing.plaf.basic.BasicProgressBarUI.getBox(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsProgressBarUI.getBox(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsProgressBarUI.paintIndeterminate(Unknown Source)
at javax.swing.plaf.basic.BasicProgressBarUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Maybe these images are just corrupt somehow? But they seem to open ok in most of my image processing software. And they're the sample Microsoft images on XP which means (a) I would have though they'd be valid images and (b) a lot of my own website clients might happen to choose these images when testing my site - which, if using your uploader, might have some issues.
Any ideas?
Thanks again. And sorry to be such a pain - you have already done me a great favor by implementing my features requested in the Image Preview forum!
Steve
P.S. Just in case you aren't running XP or don't happen to have those images, I'm attaching one of them to this post...