Commit b5bb1dac authored by David Revoy's avatar David Revoy

Upscale the size of Gif in low-res mode

All the low-res jpg were re-rendered exept the *.gif: they'll keep
native 992px size but will be upscaled by the browser (if necessary)

This rule in the multilanguage plugin ensure the comic displays them
with a special html tag that embed a css special rule to perform the
upscaling.
parent cd2ccbb0
......@@ -896,6 +896,9 @@ public function MyMultiLingueComicDisplay($params) {
if ($definition == "hd" AND strpos($comicpage_link, 'gif') !== false) {
echo '<div class="panel" align="center">';
echo '<img class="comicpage" style="max-width:2276px;" width="92%" src="'.$comicpage_link.'" '.$comicpage_size[3].' alt="'.$comicpage_alt.'">';
} else if ($definition != "hd" AND strpos($comicpage_link, 'gif') !== false) {
echo '<div class="panel" align="center">';
echo '<img class="comicpage" style="max-width:1176px;" width="92%" src="'.$comicpage_link.'" '.$comicpage_size[3].' alt="'.$comicpage_alt.'">';
} else {
echo '<div class="panel" align="center">';
echo '<img class="comicpage" src="'.$comicpage_link.'" '.$comicpage_size[3].' alt="'.$comicpage_alt.'">';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment