Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

cropResize and remote images

Started by Muut Archive 10 years ago · 1 replies · 554 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 Deleted User, 9 years ago
0 2563 9 years ago
Archive · by Muut Archive, 9 years ago
2 1689 9 years ago
Archive · by Muut Archive, 9 years ago
2 4982 9 years ago
Archive · by Muut Archive, 9 years ago
1 3806 9 years ago
Archive · by Muut Archive, 9 years ago
3 1799 9 years ago