in reply to How to get/save image with LWP

my $response = $ua->get('https://en.wikipedia.org/wiki/File:ENIAC-changing_a_tube.jpg');

Have you looked at that URL? It isn't an image which is why it is "not renderable". Use the actual URL of the image: https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/ENIAC-changing_a_tube.jpg/725px-ENIAC-changing_a_tube.jpg


🦛

Replies are listed 'Best First'.
Re^2: How to get/save image with LWP
by cormanaz (Deacon) on Jul 07, 2021 at 21:31 UTC
    Good point. I saw it ended in .jpg so I assumed it was an image. Should have checked it manually. With the actual image link it works fine. Sorry for the cycles.