Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

can't recognition APNG

Open Chzxxuanzheng opened this issue 1 month ago • 5 comments

Description when you open an APNG image

To Reproduce open an APNG image

Additional Info

GLib.GException: 无法识别的图像文件格式
   at GdkPixbuf.Pixbuf.NewFromStream(InputStream stream, Cancellable cancellable)
   at Pinta.Core.GdkPixbufFormat.ReadPixbuf(File file)
   at Pinta.Core.GdkPixbufFormat.Import(File file)
   at Pinta.Core.WorkspaceManager.OpenFile(File file, Window parent)

Version

  • Arch Linux x86_64(Linux 6.17.5-zen1-1-zen)
  • Pinta(3.0.4)

Chzxxuanzheng avatar Nov 04 '25 07:11 Chzxxuanzheng

This would require having a GDK pixbuf loader installed which supports APNG (e.g. a google search found https://github.com/berenm/gdk-pixbuf-loader-apng, although it hasn't been recently updated) I'm not sure offhand if the new glycin pixbuf loader has any support in this area

However, Pinta doesn't have any animation support so the best that could happen is editing a single frame?

cameronwhite avatar Nov 06 '25 04:11 cameronwhite

However, Pinta doesn't have any animation support so the best that could happen is editing a single frame?

I set Pinta as my default image viewer. When I try to open an APNG image, I get this error. I tried installing gdk-pixbuf-loader-apng, but Pinta still gives me the same error. If there are no plans to support APNG, I think it would be better to show a message telling the user that APNG isn't supported, rather than just showing an error.

Chzxxuanzheng avatar Nov 14 '25 04:11 Chzxxuanzheng

I tried opening a APNG image on macOS and it worked, so this must be some issue with the GDK pixbuf loaders that's specific to Linux

cameronwhite avatar Nov 16 '25 22:11 cameronwhite

However, Pinta doesn't have any animation support so the best that could happen is editing a single frame?

I see the usecase of selecting any of the frames when importing, or even stacking each frame on a grid or side-by-side. And maybe export using the same logic, getting a region and then one frame at each offset.

pedropaulosuzuki avatar Dec 07 '25 15:12 pedropaulosuzuki

However, Pinta doesn't have any animation support so the best that could happen is editing a single frame?

I see the usecase of selecting any of the frames when importing, or even stacking each frame on a grid or side-by-side. And maybe export using the same logic, getting a region and then one frame at each offset.

Also somewhat related to #1202

cameronwhite avatar Dec 09 '25 04:12 cameronwhite