Forums

Welcome Guest Search | Active Topics | Members

Images getting cropped Options
gavphillips
Posted: Wednesday, May 21, 2008 2:51:14 AM
Rank: Member
Groups: Member

Joined: 1/2/2008
Posts: 17
Points: 51
Hi,

I have a customer who has uploaded some images using the image uploader and his smaller thumbnail images are being cropped along one edge, they have a black border which isn't coming out. The larger images are fine.
I have tried this myself using Firefox and I have been able to re-create the problem so I wonder if you could take a look please.

This is a sample of code that is used to determine the thumbnail sizes, it's the smaller ones that appear to be the problem, I've also included the input image and a copy of the created thumbnail.

iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "125");
iu.addParam("UploadThumbnail1Height", "125");
iu.addParam("UploadThumbnail1JpegQuality", "85");

//Configure main image settings.
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "400");
iu.addParam("UploadThumbnail2Height", "400");
iu.addParam("UploadThumbnail2JpegQuality", "95");

Thanks
Gav


gavphillips attached the following image(s):
IMG_6067.jpg
t_IMG_6067.jpg

Eugene Kosmin
Posted: Friday, May 23, 2008 2:48:39 AM
Rank: Advanced Member
Groups: Member

Joined: 9/19/2006
Posts: 351
Points: 174
Hi Gav,

I think the problem is not in cropping. Black border on your picture is rather small and some part of it could be just lost while resizing.

Perhaps, it makes sense to increase thumbnail resize quality, especially if your clients often upload images with such elements.

Code:
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "125");
iu.addParam("UploadThumbnail1Height", "125");
iu.addParam("UploadThumbnail1JpegQuality", "85");
iu.addParam("UploadThumbnail1ResizeQuality", "High");


Best regards,
Eugene Kosmin.

Aurigma Development Team
gavphillips
Posted: Friday, May 23, 2008 6:56:54 AM
Rank: Member
Groups: Member

Joined: 1/2/2008
Posts: 17
Points: 51
Hi Eugene,

Of course, I should have thought of that! That did the trick sorry to have bothered you.

Many Thanks
Gav
Eugene Kosmin
Posted: Sunday, May 25, 2008 8:16:50 PM
Rank: Advanced Member
Groups: Member

Joined: 9/19/2006
Posts: 351
Points: 174
Don’t mention it…


Best regards,
Eugene Kosmin.

Aurigma Development Team
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.