word edit: image source precede thumbnail convert options
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 15 Jun 2020 21:18:00 +0000 (23:18 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 20 Oct 2020 20:49:11 +0000 (22:49 +0200)
Required for combining operations such as -clut; same results otherwise.

writer.plp

index b5499173be7a37623b461c73e1667f0cbc723c26..3c0b248bf9d859160269261912e745fa39bb16ad 100644 (file)
@@ -297,12 +297,13 @@ elsif (defined $post{form}) {{
                        }
                        @cmds = (
                                'convert',
+                               $imgpath,
                                -delete => '1--1', -background => 'white',
                                -gravity => @cmds ? 'northwest' : 'center',
                                @cmds,
                                -resize => "$xyres^", -extent => $xyres,
                                '-strip', -quality => '60%', -interlace => 'plane',
-                               $imgpath => $thumbpath
+                               $thumbpath
                        );
                        eval {
                                require IPC::Run;