You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> /image #mygroup image.jpg
image type must be JPG, send as a file using /f
> /image #mygroup image.JPG
max image size: 236700 bytes, resize it or send as a file using /f
I can't believe that SimpleX requires a literal .JPG extension in uppercase, so I decide to peek in the source — even if I don't speak Haskell (commit 07d2c9f):
$ cat -n Simplex/Chat/View.hs | rg '92[67]'
926 CEFileImageType _ -> ["max image size: "<> sShow maxImageSize <>" bytes, resize it or send as a file using "<> highlight' "/f"] 927 CEFileImageSize _ -> ["image type must be JPG, send as a file using " <> highlight'"/f"]
It looks as if the two error messages have been swapped, doesn't it? At least that would explain the error messages with the image.{jpg,JPG} image (which was the same image, just renamed to please SimpleX):
Given a too big image.jpg it mistakenly complains about the filetype.
User is confused because the image is a JPEG and renames the file to image.JPG in order to comply.
SimpleX doesn't like the .JPG extension, but is told to complain over the size.
Indeed. Let's try with the logo.svg from the SimpleX repo. It's an SVG file of size 4386 bytes:
> /image #mygroup logo.svg
max image size: 236700 bytes, resize it or send as a file using /f
Boom! 💣
The text was updated successfully, but these errors were encountered:
This was confusing:
I can't believe that SimpleX requires a literal
.JPG
extension in uppercase, so I decide to peek in the source — even if I don't speak Haskell (commit 07d2c9f):It looks as if the two error messages have been swapped, doesn't it? At least that would explain the error messages with the
image.{jpg,JPG}
image (which was the same image, just renamed to please SimpleX):image.jpg
it mistakenly complains about the filetype.image.JPG
in order to comply..JPG
extension, but is told to complain over the size.Indeed. Let's try with the
logo.svg
from the SimpleX repo. It's an SVG file of size 4386 bytes:Boom! 💣
The text was updated successfully, but these errors were encountered: