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

Notification

Icon
Error

Options
Go to last post Go to first unread
jmarcv  
#1 Posted : Wednesday, March 21, 2012 11:21:08 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
Am I being stupid?

Here is my converter code, set to resize to 1000 pixels

$converter = new Converter();
$converter->setMode("*.jpg,*.jpeg,*.jpe,*.png,*.bmp=Thumbnail;");
$converter->setThumbnailWidth(1000);
$converter->setThumbnailFitMode("Width");
$converter->setThumbnailResizeQuality("High");
$converter->setThumbnailJpegQuality("85");
$converter->setThumbnailApplyCrop(true);
$converter->setThumbnailCompressOversizedOnly(true);

If I upload an image that is 1678X1550 it properly resizes and uploads to 100px wide.
If I use the rotate controls it ends up as 89x96

Aurig 7
ActiveX and JAVA

Dmitry.Obukhov  
#2 Posted : Wednesday, March 21, 2012 9:44:35 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello John,

I checked your code and it worked fine – all the downloaded images were resized to 1000 by width.

Could you please provide me with a complete code snippet of Image Uploader settings?
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
jmarcv  
#3 Posted : Thursday, March 22, 2012 7:33:41 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
Thanks - here it is

require_once $AUR.'ImageUploaderPHP/Uploader.class.php';

/* Create Image Uploader */
$uploader = new Uploader('Uploader1');
$uploader->setHeight('500px');
$uploader->setWidth('100%');
$uploader->setLicenseKey($AURlicense);
$uploader->setEnableDescriptionEditor(FALSE);

$uploader->getUploadSettings()->setActionUrl($srvPOST."upl_AUR.php?batch=$batch&APPSERVER=$APPSERVER&failover=".$_REQUEST['failover'] );
$URLFORW=$srvFORW.'IM.php?pagemode=AUR_dndupl&batch='.$batch.'&IMGpicker='.$IMGpicker;
$uploader->getUploadSettings()->setFilesPerPackage(100);
$uploader->getFolderPane()->setHeight(370);
$uploader->getTreePane()->setWidth(300);
$uploader->getUploadPane()->setViewMode('List');
$uploader->getDetailsViewColumns()->setInfoText('');
$uploader->getPaneItem()->setShowFileNameInThumbnailsView(TRUE);

require_once $AUR.'ImageUploaderPHP/InstallationProgress.class.php';

$ip = new InstallationProgress($uploader);
$ip->setProgressImageUrl($AUR.'Images/installation_progress.gif');
$ip->setProgressCssClass('ip-progress');
$ip->setInstructionsCssClass('ip-instructions');
$uploader->getMetadata()->setAdditionalFormName("photomanager");
$uploader->getRestrictions()->setFileMask("*.jpg;*.jpeg;*.jpe;*.gif;*.png;*.bmp;*.tif;*.tiff;*.swf");

//______________________________________ CONVERTER SETUP ______________________________________________

$converters = &$uploader->getConverters();
//_________________________________________
$converter = new Converter();
// pass these as is
$converter->setMode("*.tif,*.tiff,*.gif,*.swf=SourceFile");
$converters[] = $converter;
//_________________________________________
$converter = new Converter();
// resize these
#$converter->setMode("*.jpg,*.jpeg,*.jpe,*.png,*.bmp,*.tif,*.tiff=Thumbnail;");
$converter->setMode("*.jpg,*.jpeg,*.jpe,*.png,*.bmp=Thumbnail;");
$converter->setThumbnailWidth(1000);
$converter->setThumbnailFitMode("Width");
$converter->setThumbnailResizeQuality("High");
$converter->setThumbnailJpegQuality("85");
$converter->setThumbnailApplyCrop(true);
$converter->setThumbnailCompressOversizedOnly(true);
$converters[] = $converter;
Dmitry.Obukhov  
#4 Posted : Friday, March 23, 2012 2:50:28 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello,

I created simple application based on your settings of the uploader and checked it. Any images are resized with width 1000px properly.

You said:
Quote:
If I use the rotate controls it ends up as 89x96

Could you please explain what you mean by “rotate controls”?
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
jmarcv  
#5 Posted : Friday, March 23, 2012 7:47:30 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
What are the rotate control?
The ones in the ImageEditor, next to the crop, also visible when mousing over an image in the FolderPane

PS there was a typo in my first post
> If I upload an image that is 1678X1550 it properly resizes and uploads to 100px wide.
should read
> If I upload an image that is 1678X1550 it properly resizes and uploads to 1000px wide.


jmarcv  
#6 Posted : Saturday, March 24, 2012 1:59:57 PM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
Looks like it works in version 7.0.15, but it is not working for me in version 7.0.37
What version did you use?
Dmitry.Obukhov  
#7 Posted : Sunday, March 25, 2012 6:53:48 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello John,

I use and make all the tests with the uploader 7.0.37. John, if it is possible could you please create and provide me with a simple application where I can replicate the issue.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
jmarcv  
#8 Posted : Monday, March 26, 2012 3:07:49 PM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
I used this.



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>TST-Upload Images</title>
</head>
<body>

<?php
if ($_GET['processOnly']){
echo count($_POST)." POST VARS\n";
foreach ($_POST as $k => $v) {
echo "$k = $v\n";
}
exit;
}

$AURversion='AUR_7.0.37';
# $AURversion='AUR_7.0.15';

$AUR="../../x_tools/$AURversion/PHP/Samples_ImageUploaderPHP/";
require_once $AUR.'ImageUploaderPHP/Uploader.class.php';

$uploader = new Uploader('Uploader1');
$uploader->setHeight('500px');
$uploader->setWidth('100%');

$uploader->setLicenseKey($AURlicense);
$uploader->setEnableDescriptionEditor(FALSE);
$uploader->setEnableRotation(TRUE);



$uploader->getUploadSettings()->setActionUrl("AURTest.php?processOnly=1" );

$uploader->getUploadSettings()->setRedirectUrl('AURTest.php');

$uploader->getUploadSettings()->setFilesPerPackage(100);
$uploader->getFolderPane()->setHeight(370);
$uploader->getTreePane()->setWidth(300);

$uploader->getUploadPane()->setViewMode('List');
$uploader->getDetailsViewColumns()->setInfoText('');
$uploader->getPaneItem()->setShowFileNameInThumbnailsView(TRUE);
$uploader->getUploadPane()->setDropFilesHereText($txt);
require_once $AUR.'ImageUploaderPHP/InstallationProgress.class.php';

$ip = new InstallationProgress($uploader);
$ip->setProgressImageUrl($AUR.'Images/installation_progress.gif');
$ip->setProgressCssClass('ip-progress');
$ip->setInstructionsCssClass('ip-instructions');

$uploader->getRestrictions()->setFileMask("*.jpg;*.jpeg;*.jpe;*.gif;*.png;*.bmp;*.tif;*.tiff;*.swf");

//______________________________________ CONVERTER SETUP ______________________________________________

$converters = &$uploader->getConverters();
//_________________________________________
$converter = new Converter();
// resize these
$converter->setMode("*.jpg,*.jpeg,*.jpe,*.png,*.bmp=Thumbnail;");
$converter->setThumbnailWidth(1000);
$converter->setThumbnailFitMode("Width");
$converter->setThumbnailResizeQuality("High");
$converter->setThumbnailJpegQuality("85");
$converter->setThumbnailApplyCrop(true);

$converter->setThumbnailCompressOversizedOnly(true);
$converters[] = $converter;

$converter = new Converter();
$converter->setMode("*.gif,*.swf=SourceFile");
$converters[] = $converter;

$uploader->render();

________________________

In the JAVA console I can see this POST sent


PackageIndex = 0
PackageCount = 1
PackageGuid = {9B4856DD-6698-901A-8312-72472E7646D7}
PackageFileCount = 1
SourceName_0 = IMG00034-20100724-2038.jpg
Description_0 =
SourceWidth_0 = 2048
SourceHeight_0 = 1536
Angle_0 = 90
HorizontalResolution_0 = 72
VerticalResolution_0 = 72
SourceSize_0 = 513959
CropBounds_0 = 0,0,2048,1536
Tag_0 =
SourceCreatedDateTime_0 =
SourceCreatedDateTimeLocal_0 =
SourceLastModifiedDateTime_0 = 2012:01:13 15:31:58
SourceLastModifiedDateTimeLocal_0 = 2012:01:13 09:31:58
File0Size_0 = 2029
File0Width_0 = 72
File0Height_0 = 96
File0Mode_0 = thumbnail
File1Size_0 = 0
File1Width_0 = 0
File1Height_0 = 0
File1Mode_0 = none
PackageComplete = 1
RequestComplete = 1





Dmitry.Obukhov  
#9 Posted : Monday, March 26, 2012 8:22:57 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello John,

Thank you for your assistance. I reproduced the problem finally. Unfortunately it is the bug of Image Uploader Java. Our developers will fix it in the next release. Sorry for the inconvenience.

To workaround it, please set thumbnailHeight property:
Code:
 
$converters = &$uploader->getConverters();
//_________________________________________
$converter = new Converter();
// resize these
$converter->setMode("*.jpg,*.jpeg,*.jpe,*.png,*.bmp=Thumbnail;");
$converter->setThumbnailWidth(1000);
$converter->setThumbnailHeight(1000);    // <-- set thumbnailHeight
$converter->setThumbnailFitMode("Width");
$converter->setThumbnailResizeQuality("High");
$converter->setThumbnailJpegQuality("85");
$converter->setThumbnailApplyCrop(true);

$converter->setThumbnailCompressOversizedOnly(true);
$converters[] = $converter;

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
jmarcv on 3/27/2012(UTC)
jmarcv  
#10 Posted : Tuesday, March 27, 2012 6:15:56 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
Excellent! - much appreciated.
Dmitry.Obukhov  
#11 Posted : Sunday, May 27, 2012 9:29:27 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello John,

This problem has been fixed in new Image Uploader 8. Please download and try it out. Learn also What's New? sections.

If you have any additional questions please feel free to let me know.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
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.