Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

cropResize and remote images

Started by Muut Archive 10 years ago · 1 replies · 612 views
10 years ago

Hello,
I am trying to resize an image from a remote url, but the naive implementation does not work, e.g.

TXT

is there a method to resize remote images? I also tried the resize function just in case, but same result.
Thanks,
André

10 years ago

manually making an image works, so is this a bug in the handling of remote images? or just a feature not supported for some reason?
The following sets the width and then height auto-rescales - probably better way to set the width/height of image

TXT
<img src="https://www.nasa.gov/sites/default/files/thumbnails/image/juice_artist-impression.jpg" width="300" />

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago