Skip to content

crash when loading image with transparency for clipart #365

@sptssq

Description

@sptssq

whenever I try 2 paste an Image w/ transparency The thing Will crash

Image here's image I was pasting

and Here's crash Log

`10 / 20 / 2025 21:31UIThreadException

version 1.9.0.20295 built on 30/04/2024 11:16
Oops, ppInk crashed! Please include the following information if you plan to contact the developers (a copy of the following information is stored in crash.txt in the application folder):

Parameter is not valid.

Stack Trace:
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at System.Drawing.Image.FromStream(Stream stream)
at gInk.Apng.Frame.GetImage() in E:\ppink.src\ppInk\src\Apng\Frame.cs:line 110
at gInk.Apng.ApngImage..ctor(Byte[] fileBytes) in E:\ppink.src\ppInk\src\Apng\APngImage.cs:line 198
at gInk.Apng.ApngImage..ctor(String fileName) in E:\ppink.src\ppInk\src\Apng\APngImage.cs:line 22
at gInk.ImageLister.LoadImage(String fnscaled) in E:\ppink.src\ppInk\src\ImageLister.cs:line 187
at gInk.ImageLister.LoadImageBtn_Click(Object sender, EventArgs e) in E:\ppink.src\ppInk\src\ImageLister.cs:line 159
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
`

i noticed Sm images w/ Transparency fine but Others don't when I decided to test, maybe it's the Format or smth but Idk cus im not a Dev, if u could Fix or atleast Tell me why it crashes it would be nice so I can work around It

Metadata

Metadata

Assignees

No one assigned

    Labels

    CompleteDiscussion/Issue completed, Fix available, to be closed at next release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions