501
Gabby Thomas (mander.xyz)
you are viewing a single comment's thread
view the rest of the comments
[-] abfarid@startrek.website 3 points 3 months ago

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.

[-] RubyRhod@lemm.ee 1 points 3 months ago

That didn't work with the above edit.

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

[-] aeharding@vger.social 2 points 3 months ago

From lemm.ee sidebar,

Image uploads are enabled 4 weeks after account creation

I contacted your admin (@sunaurus@lemm.ee) 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 :)

[-] RubyRhod@lemm.ee 2 points 3 months ago

If I get the right link and apply the formula, looks like I can at least post online images, if not from my phone.

Thanks again.

[-] RubyRhod@lemm.ee 1 points 3 months ago
[-] sunaurus@lemm.ee 1 points 3 months ago

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

[-] aeharding@vger.social 2 points 3 months ago

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.

[-] Xylight@lemm.ee 1 points 3 months ago

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

[-] aeharding@vger.social 1 points 3 months ago

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

[-] abfarid@startrek.website 2 points 3 months ago

The only problem with your image above is that the link to is broken. If you insert an existing URL from web, it will work.

Not sure why your uploads don't work though.

[-] RubyRhod@lemm.ee 1 points 3 months ago

Its an existing URL. I added the exclamation as described.

Thanks anyways. Big Fan :)

[-] abfarid@startrek.website 1 points 3 months ago* (last edited 3 months ago)

Here's the URL in your comment:

https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fimgflip.com%2Fi%2F8zyq0d

If you try to open it directly, you'll see an error, when you should be seeing an image.

I see a couple issues with it.
Firstly, URL contains an image proxy. Now, I'm not sure how exactly Lemmy works and if those are necessary, but my comments don't have those (on most clients you can use an option to see the raw comment text).
Secondly, that imgflip URL leads to a page and not to a direct image, which causes issues. If you link the direct image URL like so:

![not a meme](https://i.imgflip.com/8zyq0d.jpg)

The result is:
not a meme


Regarding the podcast you linked, I'm in no way associated with it, if that's what you thought. I'm just using an account on StarTrek.website Lemmy instance because I'm a fuckin' nerd. ๐Ÿ––

[-] RubyRhod@lemm.ee 1 points 3 months ago* (last edited 3 months ago)

Bro. IDK WTF and the existing link was my attempt at the suggestion, not my original link which was like...

This

I add an exclamation and...

This

[-] abfarid@startrek.website 2 points 3 months ago

This is the link you're using:

https://imgflip.com/i/8zykr0

(I also noticed that you switched to using another image 8zyq0d vs 8zykr0, so I'll switch as well to avoid confusion)
It's not a direct link to an image. Use a direct link to an image:

https://i.imgflip.com/8zykr0.jpg

As you can see, the URLs are different:

  • "i." in front of imgflip.com
  • ".jpg" at the end
    โ€Ž

Try copy-pasting this exact line:

![](https://i.imgflip.com/8zykr0.jpg)

and you should get:


Now, IDK why your client adds the proxy, but I hope that it's not breaking anything. We will know once you try.

[-] RubyRhod@lemm.ee 1 points 3 months ago* (last edited 3 months ago)

I really appreciate your time, but I don't know technically why I'm doing this, why it works, or how to replicate it going forward. Pretty annoyed with the inability to simply paste or upload.

[-] abfarid@startrek.website 2 points 3 months ago* (last edited 3 months ago)

No problem. If you have more questions, feel free to ask.

I used Sync back in Reddit days, but not on Lemmy, so IDK if that's Sync's fault or your instance's*. Try another client? I'm currently using Voyager. It's like Apollo for iOS, but free.

[-] RubyRhod@lemm.ee 1 points 3 months ago

Installed and logged in using Sync. Same issue, but says, "Could not upload image."

If I copy and paste it says, "Sync pasted from your clipboard." but nothing happens.

Bummer for sure.

[-] el_abuelo@programming.dev 2 points 3 months ago
[-] RubyRhod@lemm.ee 2 points 3 months ago
[-] AngryCommieKender@lemmy.world 1 points 3 months ago

Yeah, I have had issues with Voyager letting me upload pics as well, though the message I get is something along the lines of "this application doesn't allow picture modification here."

I still have Sync installed so I can upload images.

[-] aeharding@vger.social 2 points 3 months ago

The issue is lemm.ee disables image uploads until accounts are four weeks old.

[-] AngryCommieKender@lemmy.world 1 points 3 months ago

Well that explains the other users issue. My account is over a year old.

this post was submitted on 11 Aug 2024
501 points (94.0% liked)

Science Memes

11068 readers
2767 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