How do I down scale a jpeg image while decoding it?
I need to be able to down scale a jpeg image while decoding it. When my applet tries to show a large image in a browser or on a computer that doesn't support the new plugin, the default memory limit causes my applet to fail while decoding that large image.
90meg just isn't enough for images greater than 6000x3000 to be reliably decoded.
There has been some mention that there will be a scaling feature added to the JPEG standard for decoding.
Will this feature be added quickly to Java's current jpeg codec?
Is there a way now to scale the image without making the large image first then applying an AffineTransform to it?
There is a getScaledInstance() method for Image but I need a BufferedImage and ImageReader -- strangely enough -- uses the getScaledInstance() for Image so when using ImageIO almost every method that returns an image returns a BufferedImage except getScaledInstance()
Yet another flaw in the highly regarded BufferedImage API.
So if someone has a way to down scale a jpeg image while decoding it could you please post a snippet that shows how to do that and return a BufferedImage?