Due to a detected security flaw in the previously used JSON library it's recommended to upgrade to this version. Besides added security there's quite a few other additions that you'll find described below.
Among improvements and bug fixes there's a couple of new features in Kaliko CMS version 1.2.0.
This release of the library introduces alternative multi-threaded optimized filters beside the medium-trust compatible filters already included in the library. If you're using the library in a full-trust environment such as a WinForm application you should definitely use the faster filters as they are much faster, depending on the CPU reducing the time taken with 80% or more (numbers based on an Intel Core i7-2600K).
How to use the new faster filters
Add the NuGet-package ImageLibrary.FastFilters to your project and use the filters prefixed with Fast (for instance
using Kaliko.ImageLibrary; using Kaliko.ImageLibrary.Filters; using Kaliko.ImageLibrary.FastFilters; // ... var testImage = new KalikoImage("originalimage.png"); var filter = new FastUnsharpMaskFilter(5, 1.7f, 3); testImage.ApplyFilter(filter); testImage.SaveJpg("outputimage.jpg", 90);
Store original or set new resolution (DPI)
Original resolution is stored when loading an image, but in order to save the resolution with the image the
saveResolutionparameter in the save function needs to be set to
true. If not set or set to
falsethe image will be saved with screen resolution (96 DPI).
var image = new KalikoImage("image.jpg"); image.SaveJpg("image-keep-dpi.jpg", 90, true);
It's also possible to get or set the current resolution by using the
var image = new KalikoImage("image.jpg"); image.VerticalResolution = 300; image.HorizontalResolution = 300; image.SaveJpg("image-300-dpi.jpg", 90, true);
Ability to rotate and flip image added:
var image = new KalikoImage("image.jpg"); image.RotateFlip(RotateFlipType.Rotate90FlipNone);
Access to bitmap data
It's now possible to access the underlaying
Bitmapobject directly by calling
var bmp = image.GetAsBitmap();
In order to add a layer of security the Kaliko NuGet-repository now has a SSL-certificate and is reached at https://nuget.kaliko.com/