[GH-ISSUE #1068] Allow to set image size in message #745

Open
opened 2026-05-07 00:27:07 +02:00 by BreizhHardware · 6 comments

Originally created by @Batwam on GitHub (Mar 26, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1068

💡 Idea
As discussed on Matrix, it would be useful if there was a possibility to specify the size an the image attached to a message. Currently, images appear to be blow up to full width which in Firefox can we quite large.

I did try to resize the picture hoping that it would show as a smaller thumbnail but it also gets scaled up to full message width which makes it very pixelated. As a minimum, I would propose (if possible) to only scale down but not up.

I also tried to include the picture using html markdown but this does not work as ntfy doesn't support html_markdowns. I don't believe that markdowns currently allow to adjust the picture size. Either way, I can't really use markdowns as they are shown as plain text on iOS (separate issue).

top picture resolution 160x66
bottom picture resolution 1080x475
actual message window width ~700px
image

💻 Target components
Where should this feature/enhancement be added?
Firefox/Android app as this is where images can currently be shown

Originally created by @Batwam on GitHub (Mar 26, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1068 :bulb: **Idea** As discussed on Matrix, it would be useful if there was a possibility to specify the size an the image attached to a message. Currently, images appear to be blow up to full width which in Firefox can we quite large. I did try to resize the picture hoping that it would show as a smaller thumbnail but it also gets scaled up to full message width which makes it very pixelated. As a minimum, I would propose (if possible) to only scale down but not up. I also tried to include the picture using html markdown but this does not work as ntfy doesn't support html_markdowns. I don't believe that markdowns currently allow to adjust the picture size. Either way, I can't really use markdowns as they are shown as plain text on iOS (separate issue). top picture resolution 160x66 bottom picture resolution 1080x475 actual message window width ~700px ![image](https://github.com/binwiederhier/ntfy/assets/56710655/cf6d3cf8-914a-4591-8236-64a61331d075) :computer: **Target components** Where should this feature/enhancement be added? Firefox/Android app as this is where images can currently be shown
Author
Owner

@Batwam commented on GitHub (Sep 25, 2024):

also, in the absence of markdown solution to embed pictures on iOS, I am having to use attachments to include pictures in the messages. However, I don't need these "Copy URL and OPEN Attachment" options. Would it be possible to have an option to remove those?

<!-- gh-comment-id:2372703532 --> @Batwam commented on GitHub (Sep 25, 2024): also, in the absence of markdown solution to embed pictures on iOS, I am having to use attachments to include pictures in the messages. However, I don't need these "Copy URL and OPEN Attachment" options. Would it be possible to have an option to remove those?
Author
Owner

@wunter8 commented on GitHub (Sep 25, 2024):

That option has been discussed before. I'm not sure if it'll be implemented or of the best way to do that. However, in the meantime, if you use the PWA on iOS, markdown will work (including images)

<!-- gh-comment-id:2372715268 --> @wunter8 commented on GitHub (Sep 25, 2024): That option has been discussed before. I'm not sure if it'll be implemented or of the best way to do that. However, in the meantime, if you use the PWA on iOS, markdown will work (including images)
Author
Owner

@Batwam commented on GitHub (Sep 25, 2024):

Yes, images work in the web browser and therefore PWA. This could be a solution but I am not receiving notifications when using PWA which makes this solution unusable for me.

Unless notifications are meant to work with PWAs and I'm doing something wrong?

<!-- gh-comment-id:2373182143 --> @Batwam commented on GitHub (Sep 25, 2024): Yes, images work in the web browser and therefore PWA. This could be a solution but I am not receiving notifications when using PWA which makes this solution unusable for me. Unless notifications are meant to work with PWAs and I'm doing something wrong?
Author
Owner

@wunter8 commented on GitHub (Sep 25, 2024):

Notifications can work with the PWA. If you're self hosting, you need to set up web push keys first: https://docs.ntfy.sh/config#web-push

<!-- gh-comment-id:2374009682 --> @wunter8 commented on GitHub (Sep 25, 2024): Notifications can work with the PWA. If you're self hosting, you need to set up web push keys first: https://docs.ntfy.sh/config#web-push
Author
Owner

@Batwam commented on GitHub (Sep 30, 2024):

thanks for the info. I tried the PWA but it required setting up https to get notifications. I somehow never managed to make this work

<!-- gh-comment-id:2381935915 --> @Batwam commented on GitHub (Sep 30, 2024): thanks for the info. I tried the PWA but it required setting up https to get notifications. I somehow never managed to make this work
Author
Owner

@wunter8 commented on GitHub (Sep 30, 2024):

Yes, web push (notifications for the PWA) requires a domain name with a valid (e.g., not self-signed) TLS cert for HTTPS.

If you need help troubleshooting, Discord works a bit better than here

<!-- gh-comment-id:2381946569 --> @wunter8 commented on GitHub (Sep 30, 2024): Yes, web push (notifications for the PWA) requires a domain name with a valid (e.g., not self-signed) TLS cert for HTTPS. If you need help troubleshooting, Discord works a bit better than here
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#745
No description provided.