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

Notification

Icon
Error

Options
Go to last post Go to first unread
JoDe Lyon  
#1 Posted : Friday, July 27, 2007 1:00:49 AM(UTC)
JoDe Lyon

Rank: Member

Groups: Member
Joined: 7/27/2007(UTC)
Posts: 1

Hy,

Among several well uploaded pictures, some of them are recieved with a very little size.

For example a selected picture about 880Ko is recieved with only about 9ko, even though previous and next uploaded pictures keep their original size.

How can we do to resolve this problem ?

Here are some version information:

Code:
iu.activeXControlCodeBase = "ImageUploader4.cab";
iu.activeXControlVersion = "4,5,4,0";
iu.javaAppletVersion = "2.5.4.0";

Thanks for your help.

Edited by user Monday, February 11, 2008 5:27:42 PM(UTC)  | Reason: Not specified

Erick P  
#2 Posted : Sunday, July 29, 2007 12:45:54 PM(UTC)
Erick P

Rank: Member

Groups: Member
Joined: 7/10/2007(UTC)
Posts: 4

We are having the exact same issue, except it has occured for both the java and active x tool. Last week we received 12 uploads ranging from 100 - 1200 images. In each almost all are normal size, but each have files uploading at thumbnail or other small sizes. When we asked for them to re-upload, the exact same images came through at small sizes. I can provide examples if needed.

This has only started happening since the latest updates. Any help is greatly appreciated.

Below is the code on how we have the tool setup:

Code:
//Configure settings of the optimized image. Optimized image
//is resized to 1800x1200 or 800x600 with JPEG quality = 60 and EXIF 
//metadata is preserved.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "<?=$max_width?>");
iu.addParam("UploadThumbnail1Height", "<?=$max_height?>");
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail1CopyExif", "true");

// this setting will enable uploading of non-image content,
// instead of sending an "icon" version of the file
iu.addParam("UploadThumbnail1FallbackMode", "SourceFile"); 

Here is a full list of parameters that we are using:

<?php
if (($thumbnails==1) && ($inc_picshow!=1)) {
    $max_width='800';
    $max_height='600';
} else {
    $max_width='1800';
    $max_height='1200';
}
?>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 750, 500);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./ImageUploader4.cab";
iu.activeXControlVersion = "4,5,35,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.5.35.0";

iu.showNonemptyResponse = "off";

iu.addParam("LicenseKey", "XXXXX");

//Configure appearance and behaviour.
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("FolderView", "Details");
iu.addParam("UploadView", "Details");
iu.addParam("PreviewThumbnailSize", "100");
iu.addParam("ShowButtons", "false");
iu.addParam("ShowSubfolders", "true");
iu.addParam("ShowDescriptions", "false");
iu.addParam("ShowContextMenu", "false");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowMultipleRotate", "true");

//Configure colors.
iu.addParam("PaneBackgroundColor", "#ffffff");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("PreviewThumbnailActiveColor", "#f8b330");
iu.addParam("PreviewThumbnailInactiveColor", "#eeeeee");
iu.addParam("FolderPaneBorderStyle", "Fixed3D");
iu.addParam("DropFilesHereText", "Drag files or folders here then click on the Upload Photos button below.");

//Allow upload not only files, but also entire folders.
iu.addParam("AllowFolderUpload", "true");

//Link ImageUploader with ShellComboBox.
iu.addParam("AdditionalFolderNavigator", "ImageUploader1");

//Configure file mask to display images only.
iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.gif;*.png;*.tif;*.tiff;*.psd;*.mp3;*.m4a;*.m4p;*.wav;*.aif;*.aiff;*.wma");

//Exclude the source file from upload because only 
//resized versions of the photo will be sent.
iu.addParam("UploadSourceFile", "false");

//Configure settings of the optimized image. Optimized image
//is resized to 1800x1200 or 800x600 with JPEG quality = 60 and EXIF 
//metadata is preserved.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "<?=$max_width?>");
iu.addParam("UploadThumbnail1Height", "<?=$max_height?>");
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail1CopyExif", "true");

// this setting will enable uploading of non-image content,
// instead of sending an "icon" version of the file
iu.addParam("UploadThumbnail1FallbackMode", "SourceFile");

//Configure upload settings.
iu.addParam("Action", "upload.php?order_id=<?=$order_id?>&order_type=<?=$order_type?>");
iu.addParam("AutoRecoverMaxTriesCount", "10");
iu.addParam("AutoRecoverTimeOut", "10000");

//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("Progress", "ImageUploader_Progress");
iu.fullPageLoadListenerName = "FullPageLoad";

//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
//]]>
</script>

Edited by user Monday, February 11, 2008 5:27:57 PM(UTC)  | Reason: Not specified

George Ulyanov  
#3 Posted : Sunday, July 29, 2007 7:11:36 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups:
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

Could you send us these files which cause the problem? And it would be very great if you send us the direct link to the uploading page.

Edited by user Monday, February 11, 2008 5:30:20 PM(UTC)  | Reason: Not specified

Best regards,

George Ulyanov

far41  
#4 Posted : Thursday, August 23, 2007 6:12:12 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hello,

I have the same problem, but got no answer from the support yet.

It apparently happens under MAC only : some photos are uploaded with a very low resolution (few kb), and the quality is for sure horrible.

The same photo under a PC with java/firefox loads perfectly.

Have you found a solution to solve that issue ?

Thanks for your help.

George Ulyanov  
#5 Posted : Thursday, August 23, 2007 7:21:05 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups:
Joined: 7/26/2006(UTC)
Posts: 203

Hello far41,

I've used your code on my local machine to reproduce this problem but couldn't.

The configuration that I used:

- Mac G4;

- MacOS X 10.4.6;

- Firefox 2.0.0.6;

- and the latest release version of Image Uploader.

Everything worked alright but I've found some mistakes in the code that you sent me in the next lines:

iu..addParam("FileMask", "*.jpeg;*.jpg;*.jpe;*.gif;*.bmp;");

iu..addParam("MinImageWidth", "120");

Anyway if this issue would appear again - let me know about it. For the fast resolution of this it would be excellent to look into the java console.

Also you can update your version of Image Uploader to the latest one.

Edited by user Sunday, February 24, 2008 6:54:01 PM(UTC)  | Reason: Not specified

Best regards,

George Ulyanov

far41  
#6 Posted : Thursday, August 23, 2007 11:22:05 PM(UTC)
far41

Rank: Advanced Member

Groups: Member
Joined: 10/26/2006(UTC)
Posts: 30

Hi George,

Thanks your tests and your answer.

Regarding the dots, I actually don't see any double dots in my code...

Is it the ones in your post between iu and addparam ? But I can only see one in my code and my email.

You are right I should update but I wanted to be a little more patient in case you have another version to solve the httponly issue... Do you plan something soon ?

And if it's not a known correction, I wouldn't be surprised if it happens with the latest release...

That's actually what happened also with the first 2 posts, and they have the latest version. Could you solve their problem ?

I confirm that it happened again today with another Mac user. And never with a pc with FF.

I actually wanted to copy you the java console but couldn't find it on the mac. If you have any idea let me know !

Thanks

MOZ  
#7 Posted : Tuesday, August 28, 2007 8:31:51 PM(UTC)
MOZ

Rank: Member

Groups: Member
Joined: 6/15/2006(UTC)
Posts: 9

Hi George I today have had confirmed that it is a MAC with firefox browser combination that seems to be causing this problem.

I had 65 images uploaded by a customer the image uploader would load 3-4 images OK at 200- 300kb then 1 image at 4kb

this went on thru the entire upload 0f 65 images 15 failed and uploaded at only 4kb size.

Here are my settings:

Code:
var iu = new ImageUploaderWriter("ImageUploader2", 796, 465);
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;
 
iu.activeXControlCodeBase = "../ImageUploader4.cab";
iu.activeXClassId = "CF08D263-B832-42DB-8950-F40C9E672E27";
iu.activeXControlVersion = "4,5,12,0";
iu.addParam("LicenseKey", "7698-6346-8591-8616;7233-7488-9816-6081");
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.5.33.0";                    
iu.javaAppletCodeBase = "./";

iu.javaAppletJarFileName="ImageUploader2.jar";
iu.showNonemptyResponse = "off";
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("FolderView", "Thumbnails");
iu.addParam("TreePaneWidth", "220");
iu.addParam("FolderPaneShowDescriptions", "false");
iu.addParam("DescriptionsReadOnly", "true");
iu.addParam("ShowButtons", "false");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("EnableRotate", "false");
iu.addParam("AllowMultipleRemove", "true");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("UploadPaneBackgroundColor", "#ffffff");
iu.addParam("PaneBackgroundColor", "White");
iu.addParam("DisplayNameActiveSelectedTextColor", "Black");
iu.addParam("DisplayNameActiveUnselectedTextColor", "Black");
iu.addParam("DisplayNameInactiveSelectedTextColor", "#000000");
iu.addParam("DisplayNameInactiveUnselectedTextColor", "#000000");
iu.addParam("DropFilesHereText", "Drop files here");
iu.addParam("EditDescriptionTextColor", "#0000ff");
iu.addParam("AdditionalFormName", "Form1");
iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe");
iu.addParam("MinImageWidth", "700");
iu.addParam("MinImageHeight", "700");
iu.addParam("UploadSourceFile", "false");
iu.addParam("UploadThumbnail1CompressOversizedOnly", "true");
iu.addParam("UploadThumbnail1FallbackMode", " SourceFile");
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "1250");
iu.addParam("UploadThumbnail1Height", "1250");
iu.addParam("UploadThumbnail1JpegQuality", "90");
iu.addParam("UploadThumbnail1CopyExif","false");
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "80");
iu.addParam("UploadThumbnail2Height", "80");
iu.addParam("UploadThumbnail2JpegQuality", "60");
iu.addParam("MaxFileSize", "0");
iu.addParam("MaxFileCount", "100");
iu.addParam("MessageMaxFileCountExceededText", "You can upload up to 100 Images per order, if you require more please finalise this order first then start again.");
iu.addParam("TimeOut", "0");
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("AutoRecoverMaxTriesCount", "5");
iu.addParam("AutoRecoverTimeOut", "5000");
iu.addParam("Action", "PrintMe.php?photo=uploader");
iu.addParam("RedirectUrl", "PrintMe.php?photo=mygallery");
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.fullPageLoadListenerName = "fullPageLoad";
iu.addEventListener("SelectionChange", "ImageUploader_SelectionChange");
iu.writeHtml();

It seems like the upload fails and only sends thru a small size like thumbnail.

Your last Reply

RE: Image Uploader CRM:00040190

It's very difficult to repeat such problems, when we have only result files. Try to cooperate with your clients for getting this images, after that we will include them into our test packages. Anyway, we will try to repeat this issue on our files and if we got the problems that you described we will send you a notify about that.

--

Best regards,

George Ulyanov.

Software Developer, Aurigma Image Uploader Dev. Dept.

------------------- Original Message -------------------

From:

Sent: 08/04/2007

To: George Ulyanov

Subject: RE: Image Uploader CRM:00040190

Hi George,

It is as I said hard to replicate because it has happened only a few times and with customers not to myself so hard to diagnose.

The images though that are low resolution are not ICONS because I can open and view them.

These images are a low resolution picture, like a thumbnail almost like instead of uploading the optimised thumbnailfit1... image of 200 – 300kb its breaking down and uploading a much smaller thumbnail size of 6kb.

I have attached a sample of the uploaded result.

Edited by user Monday, February 11, 2008 5:31:02 PM(UTC)  | Reason: Not specified

MMOZ
George Ulyanov  
#8 Posted : Wednesday, August 29, 2007 7:46:30 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups:
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

It's not difficult to try the latest version.

Java console has to be switched on via Java panel.

Best regards,

George Ulyanov

George Ulyanov  
#9 Posted : Wednesday, August 29, 2007 7:59:36 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups:
Joined: 7/26/2006(UTC)
Posts: 203

As I said you in the e-mail message before - I need to test your Image Uploader settings on the original files that your users uploaded. You can just set property "UploadSourceFile" to "true" for a while and get these files. That's the easiest way. Or you can communicate with your clients for getting the files directly from them.

And as addition, if this problem could be localizated on our side, we would bring the fix in the nearest release.

Best regards,

George Ulyanov

MOZ  
#10 Posted : Tuesday, October 9, 2007 10:11:50 PM(UTC)
MOZ

Rank: Member

Groups: Member
Joined: 6/15/2006(UTC)
Posts: 9

Low size for some uploaded pictures

Have we been able to resolve this problem? I am still experincing this problem with random images being uploaded fail and arrive on the server as a very small file size of 4-5 kb size it only happens in JAVA applet also it seems to be PHP I think from the other posting's in this forum.

Anybody experience this problem?

The JAVA console:

Code:
Current document URL: https://xxxxxxx/PhotoOrder/PrintMe.php?photo=EnlargementImageUploader
Reading cookies
Cookies: user=MTcyNXxtZWRoYXR8YzI4OTBkNDRkMDZiYWZiNmM3YjRhYTE5NDg1N2NjYmN8MTcyLjE2LjAuMTJ8MjAwNy0wOS0yOXwxOTo1Mjo1Ng%3D%3D; __utmz=162528488.1189795800.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=162528488.97668953.1189795800.1191027445.1191076696.48; __utmb=162528488; __utmc=162528488; PHPSESSID=c9416f49c1bffea8ace83719e1329d96
Reading referer
Referer: https://xxxxxxxxx/PhotoOrder/PrintMe.php?photo=EnlargementImageUploader
Reading additional form content
Additional form processing done
Uploading to https://xxxxxxx/PhotoOrder/PrintMe.php?photo=uploader
Setting HTTPS params: Host=xxxxxxxx; Port=443
Starting upload
Exception in thread "Image Fetcher 3" java.lang.OutOfMemoryError: Java heap space
                at java.awt.image.DataBufferInt.<init>(Unknown Source)
                at java.awt.image.Raster.createPackedRaster(Unknown Source)
                at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
                at sun.awt.image.ImageRepresentation.createBufferedImage(Unknown Source)
                at sun.awt.image.ImageRepresentation.setPixels(Unknown Source)
                at sun.awt.image.ImageDecoder.setPixels(Unknown Source)
                at sun.awt.image.JPEGImageDecoder.sendPixels(Unknown Source)
                at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
                at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
                at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
                at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
                at sun.awt.image.ImageFetcher.run(Unknown Source)
Status =[200]
29/09/2007 22:39:06 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap space
                at java.awt.image.DataBufferInt.<init>(Unknown Source)
                at java.awt.image.Raster.createPackedRaster(Unknown Source)
                at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
                at sun.awt.image.ImageRepresentation.createBufferedImage(Unknown Source)
                at sun.awt.image.ImageRepresentation.setPixels(Unknown Source)
                at sun.awt.image.ImageDecoder.setPixels(Unknown Source)
                at sun.awt.image.JPEGImageDecoder.sendPixels(Unknown Source)
                at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
                at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
                at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
                at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
                at sun.awt.image.ImageFetcher.run(Unknown Source)
Uploading to https://xxxxxxx/PhotoOrder/PrintMe.php?photo=uploader
Setting HTTPS params: Host=xxxxxxxx; Port=443
Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap space
                at java.awt.image.DataBufferInt.<init>(Unknown Source)
                at java.awt.image.Raster.createPackedRaster(Unknown Source)
                at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
                at sun.awt.image.ImageRepresentation.createBufferedImage(Unknown Source)
                at sun.awt.image.ImageRepresentation.setPixels(Unknown Source)
                at sun.awt.image.ImageDecoder.setPixels(Unknown Source)
                at sun.awt.image.JPEGImageDecoder.sendPixels(Unknown Source)
                at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
                at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
                at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
                at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
                at sun.awt.image.ImageFetcher.run(Unknown Source)
Total garbage collection started.
Starting upload
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Status =[200]
29/09/2007 22:39:13 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Uploading to https://xxxxxxxx/PhotoOrder/PrintMe.php?photo=uploader
Setting HTTPS params: Host=www.expressphoto.com.au; Port=443
Exception in thread "Image Fetcher 3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Starting upload
Exception in thread "Image Fetcher 3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Status =[200]
29/09/2007 22:39:33 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Uploading to https://xxxxxxxxx/PhotoOrder/PrintMe.php?photo=uploader
Setting HTTPS params: Host=xxxxxxxx; Port=443
Starting upload
Status =[200]

Edited by user Monday, December 17, 2007 12:24:19 PM(UTC)  | Reason: Not specified

MMOZ
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.