Increase the maximum emoji size to 50kB

I thought the limit imposed by mastotodon < 4.0 was 40kB but it’s 50kB
This commit is contained in:
Charlotte 🦝 Delenk 2022-11-27 14:46:37 +01:00
parent 6d0982b80f
commit f0145fea8f
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ in
mogrify -resize 256x256\> *.png
find . -type f -name '*.png' -execdir ${../../../lib/crushpng.sh} {} {}.new 40000 \;
find . -type f -name '*.png' -execdir ${../../../lib/crushpng.sh} {} {}.new 50000 \;
for f in $(find . -type f -name '*.new'); do
mv $f ${"$"}{f%.new}
done

View file

@ -24,7 +24,7 @@
ln -s ${crushpng {
inherit name;
src = resized name;
maxsize = 40000;
maxsize = 50000;
}} $out/${name}.png
'';
emoji = [

View file

@ -32,7 +32,7 @@ in
bsdtar -xf $src
'';
buildPhase = ''
find . -type f -name '*.png' -execdir ${./crushpng.sh} {} {}.new 40000 \;
find . -type f -name '*.png' -execdir ${./crushpng.sh} {} {}.new 50000 \;
for f in $(find . -type f -name '*.new'); do
mv $f ${"$"}{f%.new}
done