Re: [Gimp-developer] Mime type application/x-xcf in /etc/mime.types vs image/x-xcf in gimp.desktop
Hello, thanks for registering your media type to the IANA. Let's hope it goes smoothly. Here are my comments. Le Sat, Jul 31, 2021 at 02:15:53PM -0400, Liam R. E. Quin a écrit : > # Type Name > > image This invites browsers receiving an XCF file to display its contents instead of asking the user whether to download the file. But since the current media type is `image/x-xcf` I assume that it is your intent. If not, `application` will be a better choice. > # Subtype Name > > Standard Tree (no prefix) > xcf If the XCF format is only driven by the GIMP project, then the vendor tree is probably what the IANA expects. For instance, the media type of Debian packages is application/vnd.debian.binary-package. > # Published specification > > https://gitlab.gnome.org/GNOME/gimp/-/raw/master/devel-docs/xcf.txt > > **Note**: RFC 6838 §4.10 says: "Media types registered in the standards > tree by the IETF itself MUST be published as RFCs. RFC publication of > vendor and personal media type registrations is allowed but not > required." > I guess it seals the fact that the format has to be registered as > "vendor", right? I also think that the vendor tree is fine. There is no loss of functionality being in the vendor tree. > # Restrictions on Usage > > The XCF format description is currently distributed under the > GNU Public License version 2 or later. GIMP is also part of the GNU > project and distributed under a GNU license. I think that this point doe not need to be mentionned. Contents in this field in other registrations appear to be technical only. > ## Deprecated alias names for this type Maybe image/x-xcf ? Have a nice Sunday, Charles -- Charles Plessy Nagahama, Yomitan, Okinawa, Japan Tooting from work, https://mastodon.technology/@charles_plessy Tooting from home, https://framapiaf.org/@charles_plessy ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] Mime type application/x-xcf in /etc/mime.types vs image/x-xcf in gimp.desktop
Thanks Jehan, Debian will change this after their current release freeze. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991158 They have requested if gimp could register the mime type with iana? Charles offered help if needed: ple...@debian.org On Sat, Jul 17, 2021 at 6:54 AM Jehan Pagès wrote: > Hi! > > On Fri, Jul 16, 2021 at 9:49 PM Joel Hockey via gimp-developer-list < > gimp-developer-list@gnome.org> wrote: > >> When I use GIMP in Chrome OS Linux environment, it does not automatically >> associate *.xcf files with GIMP since there is a mismatch between the >> /usr/share/applications/gimp.desktop file which registers to handle mime >> types including image/x-xcf and the system /etc/mime.types file which >> associates extension xcf with mime type application/x-xcf. >> >> I'm one of the developers on Chrome OS. I believe most linux desktops are >> using the xdg shared-mime-info database rather than /etc/mime.types, but >> we >> haven't yet implemented that. >> >> https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/47ca1dc530d356336ffe1b7a45dc5dc8f0e528ca/data/freedesktop.org.xml.in#L5568 >> >> I am planning to request debian media-types package to update their >> /etc/mime.types to use image/x-xcf rather than application/x-xcf which >> will >> fix things for me if they are happy to change. >> > > Indeed I think that image/x-xcf is the right one. I didn't even know of > the application/x-xcf ! > > Does anyone know the history why these are different, or would there be any >> issue if /etc/mime.types did change? >> > > Sorry I don't. If you find the source of this duplicate, please do not > hesitate to come and tell us later. > > Jehan > > >> Thanks, >> Joel >> ___ >> gimp-developer-list mailing list >> List address:gimp-developer-list@gnome.org >> List membership: >> https://mail.gnome.org/mailman/listinfo/gimp-developer-list >> List archives: https://mail.gnome.org/archives/gimp-developer-list >> > > > -- > ZeMarmot open animation film > http://film.zemarmot.net > Liberapay: https://liberapay.com/ZeMarmot/ > Patreon: https://patreon.com/zemarmot > Tipeee: https://www.tipeee.com/zemarmot > ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] Mime type application/x-xcf in /etc/mime.types vs image/x-xcf in gimp.desktop
Hi, On Sat, Jul 31, 2021 at 2:10 AM Joel Hockey wrote: > Thanks Jehan, > > Debian will change this after their current release freeze. > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991158 > > They have requested if gimp could register the mime type with iana? > Sure why not. Charles offered help if needed: ple...@debian.org > Definitely yes. I have started to fill the form ( https://www.iana.org/form/media-types), but they ask for a lot of information I'm not sure of (even looking at the RFC they link as references). So I would appreciate some feedback. Charles' email has been added in recipients of this thread. Attached is my first try at filling the form. Would anyone mind review and tell me if I misunderstood anything? I left a lot of notes here and there for reviewers because there were many stuff I was not sure of. Thanks! Jehan > On Sat, Jul 17, 2021 at 6:54 AM Jehan Pagès > wrote: > >> Hi! >> >> On Fri, Jul 16, 2021 at 9:49 PM Joel Hockey via gimp-developer-list < >> gimp-developer-list@gnome.org> wrote: >> >>> When I use GIMP in Chrome OS Linux environment, it does not automatically >>> associate *.xcf files with GIMP since there is a mismatch between the >>> /usr/share/applications/gimp.desktop file which registers to handle mime >>> types including image/x-xcf and the system /etc/mime.types file which >>> associates extension xcf with mime type application/x-xcf. >>> >>> I'm one of the developers on Chrome OS. I believe most linux desktops >>> are >>> using the xdg shared-mime-info database rather than /etc/mime.types, but >>> we >>> haven't yet implemented that. >>> >>> https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/47ca1dc530d356336ffe1b7a45dc5dc8f0e528ca/data/freedesktop.org.xml.in#L5568 >>> >>> I am planning to request debian media-types package to update their >>> /etc/mime.types to use image/x-xcf rather than application/x-xcf which >>> will >>> fix things for me if they are happy to change. >>> >> >> Indeed I think that image/x-xcf is the right one. I didn't even know of >> the application/x-xcf ! >> >> Does anyone know the history why these are different, or would there be >>> any >>> issue if /etc/mime.types did change? >>> >> >> Sorry I don't. If you find the source of this duplicate, please do not >> hesitate to come and tell us later. >> >> Jehan >> >> >>> Thanks, >>> Joel >>> ___ >>> gimp-developer-list mailing list >>> List address:gimp-developer-list@gnome.org >>> List membership: >>> https://mail.gnome.org/mailman/listinfo/gimp-developer-list >>> List archives: https://mail.gnome.org/archives/gimp-developer-list >>> >> >> >> -- >> ZeMarmot open animation film >> http://film.zemarmot.net >> Liberapay: https://liberapay.com/ZeMarmot/ >> Patreon: https://patreon.com/zemarmot >> Tipeee: https://www.tipeee.com/zemarmot >> > -- ZeMarmot open animation film http://film.zemarmot.net Liberapay: https://liberapay.com/ZeMarmot/ Patreon: https://patreon.com/zemarmot Tipeee: https://www.tipeee.com/zemarmot # Your Full Name Jehan Pagès # Type Name image # Subtype Name Standard Tree (no prefix) xcf **Note**: I wonder if XCF should actually be considered *vendor* tree (even if there is no vendor per-se and no organism behind). Our XCF format is clearly tied to GIMP and will evolve with it. Wouldn't it be somehow the definition of a vendor format? # Required Parameters **Note**: no idea how to fill these. They give RFC 2046 §1, and RFC 6838 §4.3 as references but these sections discuss format and such, but not really what these parameters are (I have not read the full RFCs). # Optional Parameters **Note**: same as above. # Encoding Considerations binary # Security Considerations No active content or action of any kind is contained in an XCF file. XCF files may contain any possible metadata (Exif, XMP, IPTC, and a generic comment), which are usually found in all common image formats. This may reveal very sensitive information on author's name, address, position, movements, owned material… Compression is used to store image tile data. The 2 possible compression formats so far are RLE and zlib compression. Image data can be enormous once uncompressed, especially for work images, which can contains dozens of layers. Since the format compresses the data per tile blocks of width and height of up to 64 pixels, the reading software will uncompress progressively, hence with the opportunity to quit at any time. This should be enough to avoid any memory-consuming attacks. The XCF format is an image work format, which may contain source images, references and sensitive metadata. It is up to the users to handle its data and metadata with copyright and privacy concerns, according to local laws. **Note**: I tried to fill in with some text I felt relevant after reading RFC 6838 §4.6, but I'm not sure if maybe they are looking for specific. # Data Interoperability Considerations XCF is a living format which
Re: [Gimp-developer] Mime type application/x-xcf in /etc/mime.types vs image/x-xcf in gimp.desktop
Hi! On Fri, Jul 16, 2021 at 9:49 PM Joel Hockey via gimp-developer-list < gimp-developer-list@gnome.org> wrote: > When I use GIMP in Chrome OS Linux environment, it does not automatically > associate *.xcf files with GIMP since there is a mismatch between the > /usr/share/applications/gimp.desktop file which registers to handle mime > types including image/x-xcf and the system /etc/mime.types file which > associates extension xcf with mime type application/x-xcf. > > I'm one of the developers on Chrome OS. I believe most linux desktops are > using the xdg shared-mime-info database rather than /etc/mime.types, but we > haven't yet implemented that. > > https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/47ca1dc530d356336ffe1b7a45dc5dc8f0e528ca/data/freedesktop.org.xml.in#L5568 > > I am planning to request debian media-types package to update their > /etc/mime.types to use image/x-xcf rather than application/x-xcf which will > fix things for me if they are happy to change. > Indeed I think that image/x-xcf is the right one. I didn't even know of the application/x-xcf ! Does anyone know the history why these are different, or would there be any > issue if /etc/mime.types did change? > Sorry I don't. If you find the source of this duplicate, please do not hesitate to come and tell us later. Jehan > Thanks, > Joel > ___ > gimp-developer-list mailing list > List address:gimp-developer-list@gnome.org > List membership: > https://mail.gnome.org/mailman/listinfo/gimp-developer-list > List archives: https://mail.gnome.org/archives/gimp-developer-list > -- ZeMarmot open animation film http://film.zemarmot.net Liberapay: https://liberapay.com/ZeMarmot/ Patreon: https://patreon.com/zemarmot Tipeee: https://www.tipeee.com/zemarmot ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list