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

Notification

Icon
Error

Options
Go to last post Go to first unread
bgordon  
#1 Posted : Wednesday, September 28, 2011 12:50:15 PM(UTC)
bgordon

Rank: Newbie

Groups: Member
Joined: 9/28/2011(UTC)
Posts: 5

I have defined two thumbnail versions... I don't want the original uploaded since the images are always 5MB. I want to allow the user to crop the images.

I have tried the advice in a recent question in the forum (Question About Cropping) and read the manual and tried variations.

I need a small thumbnail version and a scaled-down version. The thumbnail is for traditional list views and galley icons, while the scaled-down version is the one I will show as the full sized image. I don't want to upload or keep any of the huge master images.

So, I configured it as below. The problem is that my scaled-down version is still coming up the pipe as HUGE, regardless of whether the person crops it. If they crop it, it might go from 5MB to 2MB, but that is still far too large.

If I put the settings back to 'Fit' and remove the crop(true), the huge master is resized nicely down to 100k and uploaded but the user cannot save the crop even though the tool falsely indicates that it has cropped it and saved it pre-upload.

Please advise me the best config to upload two variants of the original, both cropped by the user's input in the manual cropping tool and WITHOUT uploading the original file.

I would expect a 10k thumbnail and 100k larger image on average from the 5MB original.

Thanks!


Code:

$uploader = new Uploader("Uploader1");
$uploader->setWidth("100%");
$uploader->setHeight("480px");
$uploader->getFolderPane()->setViewMode("Tiles");
		
$uploader->setLicenseKey("MY LICENCE HERE");
		
// configure upload settings
$uploader->getUploadSettings()->setActionUrl("http://www....");
$uploader->getUploadSettings()->setRedirectUrl("http://www....");
		
$uploader->setEnableAutoRotation(TRUE);
$uploader->getRestrictions()->setFileMask('*.jpg;*.jpeg;*.png;*.gif;*.bmp');

$converter = new Converter();
$converter->setMode("*.*=Thumbnail");
$converter->setThumbnailWidth(640);
$converter->setThumbnailHeight(480);
$converter->setThumbnailFitMode("ActualSize");
$converter->setThumbnailApplyCrop(true);
$converters[] = $converter;
		
$converter = new Converter();
$converter->setMode("*.*=Thumbnail");
$converter->setThumbnailWidth(120);
$converter->setThumbnailHeight(120);
$converter->setThumbnailFitMode("Fit");
$converter->setThumbnailApplyCrop(true);
$converters[] = $converter;

require_once 'ImageUploaderPHP/InstallationProgress.class.php';
		
$ip = new InstallationProgress($uploader);
$ip->setProgressImageUrl('../ImageUploaderPHP/Images/installation_progress.gif');
$ip->setProgressCssClass('ip-progress');
$ip->setInstructionsCssClass('ip-instructions');
		
$uploader->render();

Edited by user Wednesday, September 28, 2011 12:55:11 PM(UTC)  | Reason: Not specified

p.shirykalova  
#2 Posted : Wednesday, September 28, 2011 8:21:48 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Hi Bill,

Please try to change ThumbnailFitMode of your converter to "Fit" instead of "ActualSize".
Let me know about your results.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
bgordon  
#3 Posted : Thursday, September 29, 2011 4:39:51 AM(UTC)
bgordon

Rank: Newbie

Groups: Member
Joined: 9/28/2011(UTC)
Posts: 5

I have tried this (see below) and it does resize the original so it gets down to around 260k which is fine (it started off around 5MB) however, any cropping is not applied to the upload of either of the 'thumbs'.

$converter = new Converter();
$converter->setMode("*.*=Thumbnail");
$converter->setThumbnailWidth(640);
$converter->setThumbnailHeight(480);
$converter->setThumbnailFitMode("Fit");
$converter->setThumbnailApplyCrop(true);
$converters[] = $converter;

$converter = new Converter();
$converter->setMode("*.*=Thumbnail");
$converter->setThumbnailWidth(120);
$converter->setThumbnailHeight(120);
$converter->setThumbnailFitMode("Fit");
$converter->setThumbnailApplyCrop(true);
$converters[] = $converter;
p.shirykalova  
#4 Posted : Thursday, September 29, 2011 7:28:21 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Bill,

Please provide me with the direct link to your Image Uploader page (login/password if any) so I can test it myself.
You can submit new support ticket, so your login information won't be posted on forum.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
Users browsing this topic
Guest
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.