odd
odd

@manton Is there a max file size Micro.Blog aims at being under when compressing. While jpeg works for ~100% of uses, I’d like to share some stuff as png, and that will be useless if converted. Is there any way you would allow it to happen, as long as it doesn’t transgress the file size limit?

|
Embed
manton
manton

@odd Use the web version to upload a PNG and it will preserve it without converting to JPEG first.

|
Embed
SimonWoods
SimonWoods

@manton @odd Would Mimi's image processing also help with this? // @samgrover

|
Embed
vincent
vincent

@manton interesting. I was trying to work out why the Micropub endpoint always converts PNG’s to JPG. Is there a way to make sure that doesn’t happen? I noticed a “filename” parameter… instead of “name”… and I thought that might do the trick.

|
Embed
odd
odd

@manton Ok, thanks!

|
Embed
odd
odd

@odd @manton Follow up: I tried uploading a png file from the web client, (in Safari on my iPhone), but nothing seems to happen. Then tried a jpeg file, and it worked fine. (I didn’t check the size of the file, as I reckoned the interface would warn if too large).

|
Embed
manton
manton

@odd I just tried posting a PNG and it worked fine here... The upload size limit is 45 MB, which would be unusually large for a PNG.

|
Embed
manton
manton

@vincent Yes, it uses the filename in the upload to determine how to handle the file... But it's not a separate parameter, it's the filename inside the form part. Pretty sure Micro.blog is doing the right thing according to the spec.

|
Embed
odd
odd

@manton Sorry for your time. I will have another few tries. I have been using a VPN, and also I didn’t specifically check the file size in advance.

|
Embed
odd
odd

@manton Worked now. I changed the size from 5000x5000px to 1080x1080px, and the result was a 112kb file, so not sure the somewhat larger size would be it. I also turned off my VPN.

|
Embed
odd
odd

@odd The bigger size was only 1,9mb

|
Embed
manton
manton

@odd Glad it's working now. 5000x5000 is big, so I guess it might've been too large, but even then I would've expected an error message... Definitely let me know if you notice it failing again.

|
Embed
samgrover
samgrover

@SimonWoods @odd Kinda late to this conversation but Mimi preserves PNG format. All other formats get converted to JPG. The image upload settings screen calls that out too. And the "Full" size setting won't resize it either.

|
Embed
odd
odd

@samgrover Got it! I found out that too big images (5000x5000) won’t upload in the web version, even though they are only 1.9 mb.

|
Embed