GNOME Bugzilla – Bug 333278
gdk-pixbuf does not support netpbm pam format
Last modified: 2018-05-22 13:04:20 UTC
this format appeared in netpbm at some point, and is a generalization of the pnm family of formats. It is a raw format with a slightly different header, and supports B/W, grayscale, rgb, all with and without alpha. It is probably not very important, but might be a nice excercise for a rainy day to make io-pnm.c support this.
I'd like to implement saving to pnm formats, so I may implement pam at the same time. Is there a reason why the pixbuf-loader doesn't rely on the netpbm library ? Is that because the format is considered simple enough to prefer reimplementation over adding another dependency ?
I assume one reason was to support incremental loading; not sure if netpbm would support that.
As it seems PAM does everything PBM/PGM/PPM do, I'll implement only PAM saving. Would an intrusive patch adding PAM load+save be accepted, or should I split this in two patches, one for PAM loading support, the other for PAM saving ? Also, is there some doc available on implementing new pixbuf loaders, or should I guess what is needed from the code ?
I think it would be best to implement a new pam loader, then we can phase out the old pnm loader when the new one is ready.
Hum... If I understand you, the new loader would load/save PAM only. By doing that PBM/PGM/PPM won't be able to read their data anymore (unless they convert their data to PNM, using the netpbm tools, of course). This will be seen as a regression by these users. Can't both loaders co-exist?
yeah, they can coexist. I had assumed that the new loader would eventually be able to load pbm/pgm/ppm too. If that is not the case, we can keep the old one around.
I'm not sure I understand what you mean... If the new loader should support pam/pbm/pgm/ppm loading and pam saving, why do you think it's better to implement a new loader, instead of just patching the current one to add the missing features?
Is there an existing MIME format for PAM ? I've googled but found nothing...
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/8.