Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

neil up

Greenhorn
+ Follow
since Feb 22, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by neil up

sorry, i forgot to post the methods i said:


If anyone can help, thanks in advance. if anyone benefits from these examples great. lots of articles don't have the needed include statements and that sux. here they are for you as a jsp woudl need them:
12 years ago
as far as i know, you are going to get that exception. it will be thrown before the image is fully loaded in mem. there are posts aroudn the net on this specifically.

I am looking for a fast way to get high quality images resized and optimized and saved to disk as a jpeg. not in a jpanel. not low quality. not 256 color. yada yada. good output. i have gotten many examples to work from things all around the net, but they all produce the same poor albeit fast output.
for example, where light would highlight the texture of a leather, i get grainy harsh white pixels. yuck! here are three methods that all work.
the one that does a nice job takes 19s to convert from an image to a buffered image which is required to write as jpeg. does anyone know a way around this? unlike posts i have seen, Image resizedImg = bufImage.getScaledInstance( whatever) does not take long. it is the conversion from the returned Image to BufferedImage that takes so darn long.

any help would be appreciated. thanks.
-neil
12 years ago