Terminé

java thumbnail image program

Hello,

I have some problem to make thumbnail" in JAVA.

Our web site have some function to upload image file.

When a user upload image file (jpg, jpeg, png, gif...), our system try to resize that image (size: 10 ~ 30Kb) and make thumbnail because big image cause big traffic.

Almost image seems to be good.

But i have two problems.

1) CMYK image cause big problem. program don't make thumbnail well because CMYK file is jpeg that a user make via Adobe photoshop and color table is different with general jpg.. i know.

2) quality is "low"

Our source is as follow.

1) BufferedImage originalImage = [url removed, login to view](loadFile);

int type = [url removed, login to view]() == 0? BufferedImage.TYPE_INT_ARGB : [url removed, login to view]();

BufferedImage resizeImageHintJpg = resizeImageWithHint(originalImage, type, 555, 370);

[url removed, login to view](resizeImageHintJpg, "jpg", saveFile);

2) private static BufferedImage resizeImageWithHint(BufferedImage originalImage, int type, int width, int height){

BufferedImage resizedImage = new BufferedImage(width, height, type);

//BufferedImage resizedImage = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, type);

Graphics2D g = [url removed, login to view]();

//[url removed, login to view](originalImage, 0, 0, IMG_WIDTH, IMG_HEIGHT, null);

[url removed, login to view](originalImage, 0, 0, width, height, null);

[url removed, login to view]();

[url removed, login to view]([url removed, login to view]);

[url removed, login to view](RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);

[url removed, login to view](RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);

[url removed, login to view](RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

return resizedImage;

}

Could you do that?

Compétences : Java, JSP

en voir plus : java thumbnail, src program, java adobe photoshop, int size c, thumbnail, problem in java, java image resize, write java program read, function jsp, image table, write java file program, adobe java, java problems, jpg program, web function image, type image file, program read image, jsp java site, web image resize, upload file system java

Concernant l'employeur :
( 6 commentaires ) seungnam city, Korea, Republic of

Nº du projet : #4883894

Décerné à:

tlchung

let use some well-known library to do the thumb now

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 2 jours
(17 Commentaires)
6.5

2 freelance font une offre moyenne de $27 pour ce travail

waverick

Java expert available, see PM

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(15 Commentaires)
3.9