wttr.in
wttr.in copied to clipboard
Is there a way to increase the resolution of the png version?
TODO
Add support for:
- [ ] PNG size/resolution parameter
- [ ] SVG support
Original text
Is there a way to control the resolution and quality of the png
version of the service?
curl -s "v2.wttr.in/London.png" | identify -
-=>/tmp/magick-195888IlEW9jHmNkL PNG 592x602 592x602+0+0 8-bit sRGB 29.2KB 0.000u 0:00.000
I want a higher quality image. For now, I'm using convert
to increase the resolution but the image loses its sharpness.
have the same needs here (higher res image), my idea is that the service provides an SVG that can be rendered or what i'm currently trying to figure out, rendering HTML with html2ps
and convert
(imagemagick)
@pvonmoradi Good idea. Accepted. What resolution would be reasonable for you?
Thanks! But this is not a problem for me anymore (I'm ok with reduced quality by increasing the size using imagemagick convert
.
Anyway, if you still want to follow this, I think producing a svg and then converting it to png on-demand is a better idea? idk
I think that we should support both SVG and PNG with configurable size/resolution
Would love that! Maybe something like a scale factor? But without reduced quality?
For example: Using your example with the background and having the weather float there but on a 4k image? I have 4k monitors and use a 4k wallpaper now i tried your example and the weather is very tiny and upscaling destroys the beauty of my 4k monitor haha