!stickerpicker:maunium.net

Maunium sticker picker

319 Members
Discussion about maunium-stickerpicker - https://github.com/maunium/stickerpicker143 Servers

Load older messages


SenderMessageTime
28 Dec 2023
@cauascp:matrix.orgFalconyKlayillook15:49:21
@cauascp:matrix.orgFalconyKlayilthe sticker is frozen15:49:29
@elliu:hashi.reElliuthe mimetype on the sticker event is image/png15:49:40
@elliu:hashi.reElliunot image/gif15:49:45
@cauascp:matrix.orgFalconyKlayilwell15:49:52
@cauascp:matrix.orgFalconyKlayilwhere do i change them15:49:57
@elliu:hashi.reElliuso it probably also has the image/png mimetype on your pack.json15:50:02
@elliu:hashi.reElliuso yes it's probably the wront mimetype set in the header at upload15:51:43
@elliu:hashi.reElliuI don't know why15:51:46
@elliu:hashi.reElliuyou can try printing the mimetype in the pack.py to verify15:52:03
@tulir:maunium.nettulirthe pack script currently only supports png, but it can fairly easily be modified to not convert images15:52:15
@cauascp:matrix.orgFalconyKlayiloh15:52:28
@cauascp:matrix.orgFalconyKlayil tulir how do i make it not convert 15:52:43
@cauascp:matrix.orgFalconyKlayilnot to15:52:51
@elliu:hashi.reElliuoh yeah ok I didn't read far enough https://github.com/maunium/stickerpicker/blob/f59406a47a6778cd402e656ffb64f667335f665a/sticker/pack.py#L8215:53:38
@elliu:hashi.reElliumb sorry15:53:41
@elliu:hashi.reElliuprobably skip the convert around l.80, change the mimetype at l.8215:54:23
@elliu:hashi.reElliuthings like that15:54:34
@cauascp:matrix.orgFalconyKlayili mess with python but never used images15:54:42
@cauascp:matrix.orgFalconyKlayil Elliu how do i let the mimetype to work with files like gif, png, etc 15:59:03
@cauascp:matrix.orgFalconyKlayil
if sticker_id in old_stickers:
    pass # in real code if the sticker is the same as the old one it'll keep it
else:
    image_data, width, height = image_data if path.endswith('.gif') else util.convert_image(image_data) # does not convert only if it is only a gif
    print(".", end="", flush=True)
    mxc = await matrix.upload(image_data, "image/" + (".gif" if path.endswith('.gif') else ".png"), file) # the mimetype will be a gif if the file is a gif if it is not it will be a png mimetype
    print(".", end="", flush=True)
    sticker = util.make_sticker(mxc, width, height, len(image_data), name)
    sticker["id"] = sticker_id
    print(" uploaded", flush=True)
return sticker
16:06:26
@cauascp:matrix.orgFalconyKlayilthat's how i did16:06:36
@cauascp:matrix.orgFalconyKlayiloh16:10:37
@cauascp:matrix.orgFalconyKlayildid a mistake16:10:39
30 Dec 2023
@github:maunium.netGitHub [maunium/stickerpicker] m-rey starred the repo 21:04:32
31 Dec 2023
@github:maunium.netGitHub [maunium/stickerpicker] NicholasCJL starred the repo 05:58:22
@salixor:baguette.partysalixor (Old) changed their profile picture.17:40:58
1 Jan 2024
@github:maunium.netGitHub [maunium/stickerpicker] Repo forked into Bullet4Men/stickerpicker 10:31:40
@github:maunium.netGitHub [maunium/stickerpicker] Repo forked into DrG95/stickerpicker 17:53:24
2 Jan 2024
@github:maunium.netGitHub [maunium/stickerpicker] mariocarpente starred the repo 17:39:18

Show newer messages


Back to Room ListRoom Version: 6