Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

cropResize and remote images

Started by Muut Archive 9 years ago · 1 replies · 437 views
9 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é

9 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 1328 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago