mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1068] Allow to set image size in message #745
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#745
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
💻 Target components
Where should this feature/enhancement be added?
Firefox/Android app as this is where images can currently be shown
@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?
@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)
@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?
@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
@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
@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