-
MattJ
XEP-0084 historical thread: https://mail.jabber.org/pipermail/standards/2005-April/007439.html
-
MattJ
Doesn't explain the PNG-only change, but clarifies that other formats were expected to be fallbacks
-
lovetox
this must be an oversight or mistake, maybe it was by accident
-
Zash
I haven't read it as png only. Rather that one of the possibility multiple formats must be png, but you can publish alternative formats
-
MattJ
The first point in section 3 says: "1. User publishes avatar data for "image/png" content-type to data node and optionally publishes other content-types to HTTP URLs."
-
MattJ
That sounds very much like only PNG data is welcome in the PEP node, and the rest of the doc seems to back up such an interpretation
-
Zash
Meh.
-
Zash
Pointless limits, let's remove them. Mandating that at least one format be widely supported is good, but today jpeg and gif should be fine along with png.
-
flow
serious question: why would you want to have your avatar in multiple formats? shouldn't png just always be fine?
-
Zash
Jpeg deals better with photos
-
edhelas
webp
-
Zash
But you could also have a higher resolution available as alternative version
-
Zash
webp doesn't work everywhere
-
Zash
You could have it as alternative format if you wanted
-
Zash
Or you could have png+svg.
-
Daniel
heif
-
larma
make svg required and then don't base64 encode the svg, but just embed it. If you still wanted to use other image formats, you can embed them in svg
-
lovetox
larma, why though seems complicated
-
lovetox
i read a file from my harddisk in bytes, pass it to the b64encode and im finished, i dont have to care if that svg is valid xml at all
-
lovetox
i dont want to care if something is a svg, then i have to read, decode it, add the xml to as child etc, and if its another format i have to base64 encode it .. make everything just more complex
-
lovetox
for a bit less size on a payload which is rarley requested at all
-
lovetox
also png is fine as almost all supports it
-
lovetox
its the other way around, publish png, and if you want something more add other formats
-
lovetox
flow, on desktop we often deal with hidpi displays
-
lovetox
we need to scale the avatar x2 or even x3
-
lovetox
svg solves that nicely
-
Zash
So why not have the ability tp publish a higher resolution along with the mandated 96x96 png or whatever
-
lovetox
you have this ability already Zash
-
lovetox
its just that other formats are not allowed than png
-
lovetox
for me the optimal case is
-
Zash
Wasn't it just argued that you could only have one item?
-
lovetox
user selects a svg, i publish a png in 100x100 or something, and add the svg in a second avatar info, so clients that support svg can use that
-
lovetox
where Zash?
-
lovetox
The XEP says the <data> node is only for PNG
-
Zash
That. That's silly.
-
lovetox
i know
-
lovetox
and mostly ignored anyway
-
Zash
The part MattJ quoted
-
Zash
So let's update it to be sane?
-
lovetox
i remeber a time when C only published in webp
-
lovetox
yes the part that MattJ quoted, says other "content-types"
-
MattJ
The way we usually handle this is "You must publish X, you may optionally publish other things"
-
lovetox
you can post image/png in 100 resolutions if you want to pep
-
lovetox
but not another content type
-
Zash
What's the point of a info/@type attribute if the only option is png?
-
MattJ
I'd be happy with even a SHOULD support PNG, it's tricky hard-coding something here that may evolve over time (when the rest of the documented protocol would hold up fine)
-
Zash
MattJ, yes, that
-
Zash
Like with hash algos
-
lovetox
but it already has a MUST
-
lovetox
> and one of the formats MUST be "image/png" to ensure interoperability
-
lovetox
can we not just remove the word "only"
-
lovetox
its not normativ language
-
lovetox
so i guess the creator didnt think this is important anyway
-
lovetox
we just remove that part "and only for the "image/png" content-type"
-
lovetox
from 4.1
-
MattJ
Sounds good to me
-
Link Mauve
โ12:35:32 flow> serious question: why would you want to have your avatar in multiple formats? shouldn't png just always be fine?โ, SVG is much smaller for vector data, and can work at arbitrarily high resolutions.
-
Link Mauve
โ12:43:45 Daniel> heifโ, all desktop clients will soon support it with AV1 inside (AVIF), when the user has libavif installed. :)
-
Holger
Alex, I did it, >24h before the period ended!!
-
Holger
Alex, many thanks for the reminder ๐
-
Alex
,๐๐
-
Holger
!XSF_Martin, oh we're applying together. So you gotta change your nick once your application is accepted.
-
Holger
!!XSF_Martin.
-
jonasโ
Link Mauve, donโt forget your application :)
-
citizenzibb
Have any xmpp based tech companies ever donated back to xmpp?
-
citizenzibb
I.e. WhatsApp kik etc.