this post was submitted on 11 Aug 2024
480 points (93.8% liked)

Science Memes

11047 readers
2790 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 months ago (25 children)

Do you mean you want to insert an inline image? To do that you need to use markdown embed, like so:

![optional image title](https://image.url.jpg)

Exclamation point makes the image appear inline, instead of as a link.

[–] [email protected] 1 points 3 months ago (24 children)

That didn't work with the above edit.

Problem is any image I paste or upload gives me; "Problem uploading image. Please try again."

[–] [email protected] 2 points 3 months ago (6 children)

From lemm.ee sidebar,

Image uploads are enabled 4 weeks after account creation

I contacted your admin (@[email protected]) about an issue where the response to the image upload doesn't have the proper CORS headers, which prevents Voyager from reading the response. Hopefully that gets resolved at some point so we can get more helpful error messages :)

[–] [email protected] 1 points 3 months ago (1 children)

Hey, I saw this ping, but I didn't actually get any message from you about CORS headers. Where did you contact me?

[–] [email protected] 2 points 3 months ago (1 children)

Hey! Through DM, about a week ago. I'll copy below (it's nothing sensitive):

Everything seems pretty great, with the only friction I'm working through is regarding user uploads.

It looks like when using 3rd party clients (like Photon or Voyager's PWA) and I try to upload an image that is too large to lemm.ee, lemm.ee is not properly setting the CORS header. This means that Photon/Voyager can't see that lemm.ee is rejecting the upload due to image size. It seems to be working on lemmy.world.

(Please note that Voyager automatically compresses images to fit within 1MB, so it may be best to test with Photon - the same problem can be observed and replicated there.)

lemmy.world:

lemm.ee:

If you have time to take a look, I'd appreciate it! No rush at all.

[–] [email protected] 1 points 3 months ago (1 children)

Just curious, how do you compress images? Is there a web API?

[–] [email protected] 1 points 3 months ago

No API, its just some JS code that resizes in a canvas.

load more comments (4 replies)
load more comments (21 replies)
load more comments (21 replies)