havenweb / haven

Self-hostable private blogging
https://havenweb.org
MIT License
636 stars 33 forks source link

Uploaded images sometimes missing the HREF link #97

Closed elapse2039 closed 1 month ago

elapse2039 commented 2 months ago

I cant figure out why or how this happens but after when adding a 3rd or 4th uploaded image the markdown for these subsequent uploads may not have an href.

The first 2 images usually do have an href.

mawise commented 2 months ago

Haven will generate a smaller image to display so page loads a ~200kb image instead of a ~5mb image (and links to the original). But if the uploaded image is less than a certain number of pixels across, then Haven just shows the original image. Might that be what you're seeing?

On Sun, Jul 7, 2024, 3:22 PM elapse2039 @.***> wrote:

I cant figure out why or how this happens but after when adding a 3rd or 4th uploaded image the markdown for these subsequent uploads may not have an href.

The first 2 images usually do have an href.

— Reply to this email directly, view it on GitHub https://github.com/havenweb/haven/issues/97, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2DVLWZ7X3ECW7THY2MKYLZLGPRFAVCNFSM6AAAAABKPUQZUGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TIMRQGQYDSNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

elapse2039 commented 1 month ago

This seems to be the case... smaller images dont get a hyperlink.