Subject: | Scramble Images |
When running wallflower, the image is stored to static/image.jpg, but it's content is all messed up.
Please find attached an example.
This is the command I used:
wallflower --application script.cgi --dir static/
Here is an example application:
#!perl
use Mojolicious::Lite;
get '/' => sub {
my $c = shift;
$c->render(template => 'index');
};
app->start;
__DATA__
@@ index.html.ep
<html>
<body>
<h1>Image</h1>
<img src="/image.jpg" />
</body>
</html>
@@ image.jpg (base64)
R0lGODlhoACgAPfKAGet+oe16PTy72Sq94+55/fz8Gyv+cdQUKenp4CAgGex/qVsfoKWzX19fV5eXl1dXVRUVNzc3MpNSubm5s5NSsbGxouLi7GxsZKSkmxsbGhoaFZWVmOf4sZNTWuv+ri4uNHR0W6q8Wa1/6F2lMlOTJycnHJycs1KR81KRllZWWuu971aY4i153Kk2nV1dWum5W2x/dvb28nJyWRkZG2x/Gqv+G2m5oeHh3C3/2mv+ZmZmby8vJC55sxeXui3t2Sp9vj07leFuGag4s1hYc1kZJC66Pv27mah42Kf4vf08G+q63Gq6sxfX8pKSMpaWWay/stcXG6y/sdOTeezs2qt955xoKdnkmat+vfz74e152yv+G6y/GSp98lKSGyu+ERgf8NYXlmJvrFbgmS1/2ix/I+DuV2Sy2yy/Gy0/2Od22mo72qq6tQxRm6p759yitFGQGe4/9RHP2W0/VqMwm2y/sxLRm2x+12RykJceViIvaN0kG2w+22r84+Du12TzUhnimmw+dMzSWmp8Gqu916SzWys9e/v73Sj6Gyv+miw+3Cs9IqJw46EqJl4q2Op9muw+6Jsmmus9X+Y0lR/rmCX1Hif3rtPcGey/Gel6m+2/2ex/Wmw+2K4/4KVzGqu+G+1//n28pO961+U0V6Uz1N9rKZ1kmaz/maj56BvnnOj6MBXXsVEYH2X2Gex/EVigWez/FJ9q7tQcWym5W6y/YOUymyz/2ay/W2y/Wuw+mut9VeGu3Wi5m6k4WWg4mKb2aZse6lpeGK3/6FunNBLRpZ7rmuv+VNTU2yl5Gut9vDw8P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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