• Post Reply Bookmark Topic Watch Topic
  • New Topic

Scaling images using JAI  RSS feed

 
jim jjoh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code to convert tiff image to PNG image.
I want to scale my PNG image to 800X800 without losing quality.
I use the below code but seems doesn't work.Its not resizing the image to specific height and width.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code to convert tiff image to PNG image.

The built-in javax.imageio package can do that without resorting to JAI (which is an obsolete library).

I want to scale my PNG image to 800X800 without losing quality.

If the original image is smaller than that, then this is not possible - scaling bitmap images up always loses quality.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!