Wouldn’t you like to view your webtoon online and on your phone, just as people will be seeing it when you upload it to webtoons or other long-form comics? I put together a simple php script and css stylesheet to do just that!
First thing I do is export my comic pages from clip studio.
Then I upload it to my site, which supports php, using ftp into an images folder.
Here is the php and css you’ll need:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<html> <head> <title>In progress</title> <link href="mystyle.css" rel="stylesheet" type="text/css" media="all"> <meta name="robots" content="noindex"> </head> <body> <?php $dirname = "images/"; $images = glob($dirname."*.jpg"); foreach($images as $image) { echo '<img src="'.$image.'" /><br />'; } ?> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
img { display: flex; margin-left: auto; margin-right: auto; } @media screen and (max-width: 1000px) { img { width: 100%; overflow: hidden; margin-left: 0; margin-right: 0; } body { margin: 15px 0 15px 0; } } |
Here’s what it looks like on my ftp (I renamed mine fools.css):
Hope you find this useful!