Original source image deleted

Image scaler add-on.
Post Reply
kiki
Posts: 2
Joined: Fri Mar 04, 2011 9:54 am

Original source image deleted

Post by kiki »

Using jmagefilter, images sent from the source folder are deleted.
Why?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Original source image deleted

Post by support »

They should not be deleted except if you've enable an option for so. Could you provide here your JavaScript and scaling.properties file?

kiki
Posts: 2
Joined: Fri Mar 04, 2011 9:54 am

Re: Original source image deleted

Post by kiki »

This is my scaling file:
--------------------------------------------------------------------------------------

Code: Select all

# Image filter properties.
maxwidth=2000
maxheight=1500
# Optional scaling properties for landscape and portrait.
landscape.maxwidth=2000
landscape.maxheight=1500
portrait.maxwidth=1500
portrait.maxheight=2000
# Scale option (allowmagnify or fitaspectratio)
# allowmagnify: Magnify image if size < maxwidth and maxheight parameters above.
# fitaspectratio: Modify aspect ratio to fit image dimension to maxwidthxmaxheight
#scaleoption=allowmagnify
# scalefactor allows to reduce or magnify image regardless to 
# maxwidth and maxheight parameters above.
#scalefactor=0.5
# quality allows to select compression quality from 0.0 to 1.0
#quality=0.8
# Forward input metadata to scaled image (unknownmarker or all) 
# metadata=all
# Abort action on metadata issue (default is ignore)
#metadata.error=abort
# Watermark image (Use transparent PNG with dimensions < maxwidth x maxheight)
#watermark=watermark.png
# Watermark locations are: center, topleft, topright, topcenter, bottomleft, bottomright, bottomcenter
#watermarklocation=bottomright
# Watermark transparency factor from 0.0 to 1.0 (1.0 means no transparency)
#watermarkfactor=0.3
# Temporary folder (if not available then it will use user's home. Use auto for same folder as original image)
#tmpfolder=c:/temp
# Scaled image filename. Values could be "append" or "rename" or "renameifneeded"
renamepolicy=append
# Supported input image formats for scaling.
#For JRE 1.4 without IO Tools.
#extensions=jpg,jpeg,jpe,gif,png
#For JRE 1.5 without IO Tools.
#extensions=jpg,jpeg,jpe,gif,png,bmp
#For JRE 1.4 or 1.5 with IO Tools.
#extensions=jpg,jpeg,jpe,gif,png,bmp,tif,tiff,pnm,raw
# Force RGB conversion.
forcergb=true
# SUN Bug 4881314 workaround.
#imageloader=toolkit
# Scaling implementation (AWT, ImageIO or ImageIOSubsample). Default is ImageIO.
#impl=awt
# Multi-step approach for best image quality with ImageIO scaling implementation. 
#multistep=true
# Output image format after scaling (same as input if commented).
# GIF outformat is not available.
outformat=jpg
# Rotation algorithm (nearestneighbor, bilinear, bicubic). Default is bicubic
#rotation.algorithm=nearestneighbor
# Misc
# Disable filter for image dimensions > maxpixels 
#maxpixels=9000000
# Disable filter for image with width <= maxwidth or height <= maxheight
#disable.maxwidth=640
#disable.maxheight=480
# Stop upload on image operation error (default is ignore).
#operation.error=abort
# Enable filterparamX/filtervalueX reloading.
#enable=true
----------------------------------------------------------------------------------
And this is my javascript.
Please consider only the part concerning INTERNET EXPLORER, the first part is not yet complete.
However the problem occurs only by applying the scaling file.

Code: Select all

<!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
if (_info.indexOf("Opera") > 0) _ie = false;
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
if (_ie == true) {
  document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="640" HEIGHT="350" NAME="fileupload" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
}
else if (_ns == true && _ns6 == false) { 
  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
  document.write('<EMBED ');
  document.write('type="application/x-java-applet;version=1.4" ');
  document.write('CODE="jfileupload.upload.client.MApplet.class" ');
  document.write('JAVA_CODEBASE="./" ');
  document.write('ARCHIVE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar,lib/previewui.jar,lib/ifilter.jar,lib/jai_imageio.jar" ');
  document.write('NAME="fileupload" ');
  document.write('WIDTH="640" ');
  document.write('HEIGHT="350" ');
  document.write('url="ftp.mysite.biz" ');
  document.write('username="myusername" ');
  document.write('password="mypassword" ');
  document.write('param3="pasv" ');
  document.write('value3="true" ');
  document.write('param4="account" ');
  document.write('value4="./upload/13x18" ');
  document.write('transferui="jfileupload.transfer.client.preview.PreviewerTransferUI" ');
  document.write('resources="1318_bar" ');
  document.write('transferuiresources="1318_pane" ');
  document.write('mode="ftp" ');
  document.write('scriptable=true '); 
 document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
  // END
}
else {
  document.write('<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./" ARCHIVE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar,lib/previewui.jar,lib/ifilter.jar,lib/jai_imageio.jar" WIDTH="640" HEIGHT="350" NAME="fileupload">');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar,lib/previewui.jar,lib/ifilter.jar,lib/jai_imageio.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="ftp://ftp.mysite.biz">');
document.writeln('<PARAM NAME="param1" VALUE="username">');
document.writeln('<PARAM NAME="value1" VALUE="myusername">');
document.writeln('<PARAM NAME="param2" VALUE="password">');
document.writeln('<PARAM NAME="value2" VALUE="mypassword">');
document.writeln('<PARAM NAME="param4" VALUE="account">');
document.writeln('<PARAM NAME="value4" VALUE="./upload/13x18">');
document.writeln('<PARAM NAME="param3" VALUE="pasv">');
document.writeln('<PARAM NAME="value3" VALUE="true">');
document.writeln('<PARAM NAME="transferui" VALUE="jfileupload.transfer.client.preview.PreviewerTransferUI">');
document.writeln('<PARAM NAME="resources" VALUE="1318_bar">');
document.writeln('<PARAM NAME="transferuiresources" VALUE="1318_pane">');
document.writeln('<PARAM NAME="mode" VALUE="ftp">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="hidebar" VALUE="false">');
document.writeln('<PARAM NAME="param5" VALUE="relativefilename">');
document.writeln('<PARAM NAME="VALUE5" VALUE="TRUE">');
document.writeln('<PARAM NAME="policy" VALUE="ignore">');
document.writeln('<PARAM NAME="resume" VALUE="TRUE">');
document.writeln('<PARAM NAME="filterparam1" VALUE="tmpfolder">');
document.writeln('<PARAM NAME="filtervalue1" VALUE="auto">');
document.writeln('<PARAM NAME="filter" VALUE="jfileupload.upload.client.filter.ImageFilter">');
document.writeln('<PARAM NAME="filterproperties" VALUE="1318_scaling.properties">');
document.writeln('<PARAM NAME="forward" value="http://www.mysite.biz/formail.htm">');
// END
if (_ie == true) {
  document.write('</OBJECT>');
}
else if (_ns == true && _ns6 == false) {
  document.write('</NOEMBED></EMBED>');
}
else {
  document.write('</APPLET>');
}
//-->
[/color]

Thanks for the help

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Original source image deleted

Post by support »

Could you try to remove:
<PARAM NAME="filterparam1" VALUE="tmpfolder">
<PARAM NAME="filtervalue1" VALUE="auto">

And see if the problem still occurs?

Post Reply