Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
VC Samir  
#1 Posted : Thursday, April 17, 2014 1:23:53 AM(UTC)
VC Samir

Rank: Newbie

Groups: Member
Joined: 4/17/2014(UTC)
Posts: 3

HI all,

I need help on image resizing before uploading them to server. Suppose i have images which i have to print on size of 4X6, 8X12, 20X20. what will be the best way for resizing for each type of images without deteriorating the print Quality?

Thanks
Samir
Andrew  
#2 Posted : Thursday, April 17, 2014 1:40:44 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 870

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
The optimal image size depends on two factors: physical dimensions you need and the printer resolution (DPI, i.e. how many pixels will be used to produce one inch).

For example, you are going to print it with 300DPI resolution and the image size is 4x6 inches. It means that it does not make sense to have an image larger than 300*4x300*6 = 1200x1800 pixels.

Hope this helps.
VC Samir  
#3 Posted : Thursday, April 24, 2014 12:42:28 AM(UTC)
VC Samir

Rank: Newbie

Groups: Member
Joined: 4/17/2014(UTC)
Posts: 3

hi andrew,

Is there a way where i can reduce only the image quality on the client side before the image is uploaded? Example demonstrated shows image cropping before upload, Is there a way i can set image quality to 60 before the images are uploaded?

Thanks in Advance
Samir
Andrew  
#4 Posted : Thursday, April 24, 2014 7:10:09 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 870

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
Yes, you can. You can use the fit mode called ActualSize. It means that it will recompress JPEG, but no resize is applied.

It should look like this:

Code:
var u = $au.imageUploaderFlash({
    id: 'Uploader1',
    converters: [{mode: '*.*=Thumbnail', 
        thumbnailJpegQuality: 60,
        thumbnailFitMode: 'ActualSize'}]
});
u.writeHtml();


Hope this helps.

Edited by user Thursday, April 24, 2014 7:15:16 PM(UTC)  | Reason: Initially I have inserted code snippet for activex/java rather than html5/flash

VC Samir  
#5 Posted : Friday, April 25, 2014 1:33:30 AM(UTC)
VC Samir

Rank: Newbie

Groups: Member
Joined: 4/17/2014(UTC)
Posts: 3

hi andrew,

i am using activex/java since uploading to s3 with flash/html5 is not possible, can u send me code for activex/java

thanks
Users browsing this topic
Similar Topics
Image compression: Client-side or Server-side? (Discussions – ActiveX/Java Uploader)
by pisos_com 7/21/2010 7:24:48 PM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.