Upgrading from ImageCR 2

Upgrading from ImageCR 2 should be a fairly straightforward update of the attributes and return values.

Complete details are listed here per item and in the simple ImageCR 2 Relations table at the bottom.

Attributes

Return Values


load is like source
 
save is like cachedir & target
 
resize is like width, height, maxwidth, maxheight, minwidth & minheight
In ImageCR 3, by default, images are only resized when they are larger than the specified dimensions. In other words, an image smaller than your defined dimensions is not enlarged, by default, to fit those dimensions. You can override this behaviour with the RectString prefix "!". This change and other RectString features should prove very useful to those implementing multiple ImageCR 2 calls and/or ImageXY.
crop is new
This is not the same as the crop attribute in ImageCR 2. The crop attribute from ImageCR 2 is now called anchor.
recrop is new
This is not the same as the crop attribute in ImageCR 2. The crop attribute from ImageCR 2 is now called anchor.
anchor is like crop
The crop attribute from ImageCR 2 is now called anchor. Do not confuse this with the new crop attribute.
border is like border
ImageCR 3 allows you to specify different sizes for the top/bottom and left/right of the border. To achieve inner bordering, first crop with the new CROP attribute.
bordercolor is like bordercolor
ImageCR 3 offers additional methods of specifying color.
rotate is like rotate
ImageCR 3 allows rotation to all degrees, not just increments of 90 as was the case previously.
prerotate is new
 
flip is like fliph
 
flop is like flipv
ImageCR 3 uses what we consider a more intuitive name for flipv with respect to fliph.
autocontrast is new
 
contrast is like contrast
 
decontrast is new
 
sharpen is like sharpen
 
blur is like blur
 
brightness is like brightness
 
format is like format
 
quality is like jpg_quality
The default in ImageCR 3 is now 80
dpi is like dpi
 
resample is like resample
In ImageCR 3 you specify the filter names instead of numbers. You also have more than double the filters to choose from, a total of 15.
quantize is new
 
colorspace is new
 
detectchanges is like detectchanges
Detectchanges does not work with images loaded via URL, a new feature in ImageCR 3.
strip is like strip
 
returnextras is new
 
cache is like cache
 
getimageinfo is new
 
getimagedetails is new
 
getversion is new
 
getdefaultsave is new
 
setdefaultsave is like cachedir
Previously known as defaultcachedir, this value was configured upon installation and stored in the registry. Now you must set it yourself from Coldfusion.
throwexceptions is new
 
getexif is new
 
getiptc is new
 
hue is new
 
saturation is new
 
colorize is new
 
sepia is new
 
grayscale is new
 
autocrop is new
 
comment is new
 
getcomment is new
 
savedata is new
 
root is new
 
background is new
 

imagecr.width is like image.width
ImageCR 3 no longer returns -1 for defined errors. Test imagecr.loadfailed instead.
imagecr.height is like image.height
ImageCR 3 no longer returns -1 for defined errors. Test imagecr.loadfailed instead.
imagecr.filename is like image.link
Use of "imagecr" instead of "image" is better for the namespace. You should not use "imagecr" as a variable name yourself.
imagecr.directory is new
 
imagecr.format is new
 
imagecr.filesize is new
 
imagecr.filecreated is new
 
imagecr.filemodified is new
 
imagecr.fileaccessed is new
 
imagecr.dpi is new
 
imagecr.comment is new
 
imagecr_exif is new
 
imagecr_iptc is new
 
imagecr.data is new
 
imagecr.existed is new
 
imagecr.created is like image.cached
ImageCR 3 no longer returns -1 for defined errors. Test imagecr.loadfailed instead.
imagecr.loadfailed is like _ImageCR_SourceMissing.jpg, _ImageCR_SourceInvalid.jpg & image.cached value of -1
 
imagecr.savefailed is new
 
imagecr.version is new
 
imagecr.defaultsave is new
 
imagecr.error is new
 
imagecr.errortype is new
 
imagecr.errormessage is new
 
imagecr.returnvalues is new
 

ImageCR 2 Relations

The ImageCR 2 topic on the left is mapped to it's ImageCR 3 equivalent(s) on the right.

 ImageCR 2 topic »  ImageCR 3 equivalent(s) 
_ImageCR_SourceInvalid.jpg » imagecr.loadfailed
_ImageCR_SourceMissing.jpg » imagecr.loadfailed
blur » blur
border » border
bordercolor » bordercolor
brightness » brightness
cache » cache
cachedir » save , setdefaultsave
contrast » contrast
crop » anchor
detectchanges » detectchanges
dpi » dpi
fliph » flip
flipv » flop
format » format
height » resize
image.cached » imagecr.created
image.cached value of -1 » imagecr.loadfailed
image.height » imagecr.height
image.link » imagecr.filename
image.width » imagecr.width
jpg_quality » quality
maxheight » resize
maxwidth » resize
minheight » resize
minwidth » resize
resample » resample
rotate » rotate
sharpen » sharpen
source » load
strip » strip
target » save
width » resize



« Color Names (prev) (next) Change Log »

Copyright © Efflare Systems