rohithkrajan / imagelibrary Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/imagelibrary
License: Other
Automatically exported from code.google.com/p/imagelibrary
License: Other
What steps will reproduce the problem?
1. instantiate KalikoImage by passing TIFF file name
What is the expected output? What do you see instead?
Expected: image is instantiated properly
Actual: OutOfMemoryException is thrown
What version of the product are you using? On what operating system?
1.2.4.0 (Win7)
Please provide any additional information below.
This happens for some TIFF images (especially when they are about 1500x1500).
What we have noticed it is related to some kind of unsupported format of image.
There is also a workaround for it. If conversion used in MakeImageNonIndexed()
method is always executed, file is loaded properly:
private void MakeImageNonIndexed()
{
//if(IndexedPalette)
_image = new Bitmap(new Bitmap(_image));
}
You can contact me at wojciech.kotlarski at 7digital.com in order to get
example tiff file that is causing problems (I cannot upload this image with
this ticket, as it should not be publicly available)
Original issue reported on code.google.com by [email protected]
on 25 Feb 2013 at 2:51
Add methods for detecting if the given image is in portrait or in landscape mode
Original issue reported on code.google.com by [email protected]
on 12 Jan 2011 at 2:48
It is very important that using Bitmap object a freed from memory after use.
This can be done using KalikoImage.Destroy()
However, it would be great if KalikoImage implemented IDisposable, so we can
write using statements:
Using Image As New Kaliko.ImageLibrary.KalikoImage()
End Using
Original issue reported on code.google.com by [email protected]
on 14 May 2011 at 6:35
When resizing an image using the GetThumbnailImage function, a noticeable top
and left border is created (1px). The following example shows this:
http://3.bp.blogspot.com/_5H9FP3xjceY/SyadiyzvMBI/AAAAAAAAAAc/EttNRWC3Byo/s320/t
humbnail-fit.jpg
Ps. Great library, very easy to use!
Original issue reported on code.google.com by [email protected]
on 14 May 2011 at 6:31
I would much appreciate support for the dds file format.
Original issue reported on code.google.com by [email protected]
on 28 Aug 2013 at 12:29
The issue: When you have an landscape image and you want to have a
portrait thumbnail now your library will crop the image, and the same for
portrait image and landscape thumbnail.
The fix:
In the class Kaliko.ImageLibrary.KalikoImage method
public KalikoImage GetThumbnailImage(int width, int height,
ThumbnailMethod method) the padding part:
else if(method == ThumbnailMethod.Pad) {
float hRatio = (float)_image.Height / (float)height;
float wRatio = (float)_image.Width / (float)width;
float newRatio = hRatio > wRatio ? hRatio : wRatio;
int imgHeight = (int)(_image.Height / newRatio);
int imgWidth = (int)(_image.Width / newRatio);
image = new KalikoImage(width, height, _backgroundColor);
Graphics g = Graphics.FromImage(image._image);
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.DrawImage(_image, (width - imgWidth) / 2, (height - imgHeight) / 2,
imgWidth, imgHeight);
}
Original issue reported on code.google.com by [email protected]
on 3 Mar 2010 at 2:08
What steps will reproduce the problem?
1.The problem is a transparence, why the install the cs for apply format
PixelFormat.Format24bppRgb
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Kaliko.ImageLibrary.dll, v1.2.1.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 29 Jan 2014 at 3:09
What steps will reproduce the problem?
If you start with a PNG that has a transparent background and run it through
GetThumbnailImage the transparent sections will be changed to black. If I alter
the background color, I can change that to another color, but not transparent.
What is the expected output? What do you see instead?
It would be ideal if transparency could be preserved. However, this would
require a different PixelFormat be used than the hardcoded value in the library
(Format24bppRgb).
What version of the product are you using? On what operating system?
1.2.4
Please provide any additional information below.
I have had success by adding a PixelFormat property that can be set by a
constructor. Then I use that PixelFormat for the creation of the Thumbnail.
However, the issue I run into is that if I set the PixelFormat to
Format32bppArgb or Format32bppPrgb the transparency is preserved, but the
Gaussian or Unsharpmask filters no longer work (they create blank images).
Attached is the KalikoImage.cs library that allows the user to set the
PixelFormat. I would be very grateful if there were a way to get the filters to
perform with the Format32bppArgb pixelformat.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2011 at 5:55
Attachments:
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
I see a System.Drawing.Image and files but no BitmapImage or Image object.
What version of the product are you using? On what operating system?
1.2.1
Please provide any additional information below.
Kaliko seems cool and easy enough for my purpuses. But what I totally miss is
an option to use the processed images further in the code. Rarely developpers
only read-process-writetodisk pics, we need to display it!
How can I put a KalikoImage object into a?:
+ System.Windows.Controls.Image (preferably)
+ System.Windows.Media.BitmapImage
Original issue reported on code.google.com by [email protected]
on 29 Jun 2010 at 9:22
Example code:
KalikoImage img = new KalikoImage(new MemoryStream(imgBytes));
img.BlitFill(@"C:\watermark.png");
MemoryStream ms = new MemoryStream();
img.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
return ms.ToArray();
What is the expected output? What do you see instead?
Image should have the BlitFill image overlaid. Saving the KalikoImage.Image to
a bytearray does not have the image overlaid.
What version of the product are you using? On what operating system?
1.2.4
Original issue reported on code.google.com by [email protected]
on 4 Jan 2013 at 4:09
Add methods for scaling images by:
1) new width / height
image.Scale(200, 100);
2) percent
image.Scale(1.25);
Original issue reported on code.google.com by [email protected]
on 12 Jan 2011 at 2:50
When using GetThumbnailImage with Crop, certain images get black borders when
the original image is white.
This can be solved by using the "new KalikoImage(w,h,_backgroundColor)"
just as in the "Pad" case.
Original issue reported on code.google.com by [email protected]
on 18 Nov 2011 at 12:50
SavePng accepts a quality parameter which is discarded by the encoder.
Original issue reported on code.google.com by [email protected]
on 12 Jan 2012 at 8:47
Plz add API docs ;o)
Original issue reported on code.google.com by [email protected]
on 12 Jan 2011 at 2:51
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.