Git Product home page Git Product logo

imagelibrary's People

Watchers

 avatar

imagelibrary's Issues

KalikoImage constructor throws OutOfMemoryException when loading TIFF file

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

Implement IDisposable

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

Dark top / left border when using GetThumbnailImage

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

Landscape thumbnails gets cropped

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

problem, transparence

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

GetThumbnailImage does not preserve transparency

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:

Needs converter for further in-code use

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

Using BlitFill then calling the KalikoImage.Image object returns the image without the BlitFill operation

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

Crop always gives black backgrounds

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.