28 Dec 2023 |
GitHub | [maunium/stickerpicker] Repo forked into xrdn/stickerpicker | 10:32:57 |
| zzz joined the room. | 14:07:49 |
FalconyKlayil | is there a way i can add a gif? cat | 14:42:29 |
cat | no idea, read documentation
if you can/can not, it would be documented | 15:15:42 |
cat | i think you can add animated stickers but you need to convert those
https://github.com/maunium/stickerpicker/issues/6 | 15:17:25 |
Elliu | you can | 15:17:48 |
Elliu | example | 15:18:10 |
FalconyKlayil | Elliu: do i need to use something to convert? | 15:18:43 |
Elliu | as long as it's a gif, it will work | 15:19:02 |
FalconyKlayil | i tried adding a gif file it was stop on one frame | 15:19:28 |
Elliu | how did you upload it? | 15:19:52 |
Elliu | when uploading it to the HS, you need to put the correct image/gif mimetype | 15:20:16 |
Elliu | don't know if not doing that would make it be stuck on first frame, but possible | 15:20:29 |
FalconyKlayil | mm | 15:20:29 |
FalconyKlayil | how do i put the mime type | 15:20:47 |
Elliu | you need to add the "Content-Type: image/gif" on the post request when uploading the file | 15:21:53 |
FalconyKlayil | um | 15:22:19 |
FalconyKlayil | how can i put that on sticker-pack bin? | 15:22:39 |
FalconyKlayil | module | 15:22:46 |
FalconyKlayil | idk | 15:22:47 |
Elliu | also, gif is a bit finicky, so depending on gif options and client, it can be displayed a bit differently (for example -dispose, -background, -coalesce if you convert using imagemagick. The "replay" (I don't remember the exact option right now) that decides if your gif is played once or looping for example (depending on the client, it might honor this or not)) | 15:24:16 |
Elliu | In reply to @cauascp:matrix.org how can i put that on sticker-pack bin? I don't know, I don't use that to upload the files to the HS sorry | 15:24:34 |
cat | In reply to @elliu:hashi.re you need to add the "Content-Type: image/gif" on the post request when uploading the file thats what a client does when uploading an image | 15:26:52 |
Elliu | but by reading https://github.com/maunium/stickerpicker/blob/f59406a47a6778cd402e656ffb64f667335f665a/sticker/pack.py#L51, it should already use the mime type image/gif, if you give it a valid gif | 15:27:13 |
Elliu | wait you're not talking about pack.py? | 15:27:56 |
FalconyKlayil | catElliu theres this warning when i use sticker-pack: [Warning] Magic is not installed, using file extensions to guess mime types | 15:33:21 |
Elliu | and your gif is correctly ending in .gif? | 15:34:07 |
FalconyKlayil | mhm | 15:34:15 |
FalconyKlayil | is magic a python lib? if so i use pip install magic then? | 15:35:29 |
Elliu | it's probably referring to imagemagick | 15:35:44 |