Hello community,

here is the log from the commit of package imgp for openSUSE:Factory checked in 
at 2018-10-23 20:36:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/imgp (Old)
 and      /work/SRC/openSUSE:Factory/.imgp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "imgp"

Tue Oct 23 20:36:50 2018 rev:4 rq:643543 version:2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/imgp/imgp.changes        2018-02-20 
17:58:05.951931536 +0100
+++ /work/SRC/openSUSE:Factory/.imgp.new/imgp.changes   2018-10-23 
20:36:53.240795412 +0200
@@ -1,0 +2,7 @@
+Sat Oct 20 18:28:28 UTC 2018 - Luigi Baldoni <aloi...@gmx.com>
+
+- Update to version 2.6
+  * Support for progressive JPEG
+  * Some bug fixes and documentation update
+
+-------------------------------------------------------------------

Old:
----
  imgp-2.5.tar.gz

New:
----
  imgp-2.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ imgp.spec ++++++
--- /var/tmp/diff_new_pack.L4jGft/_old  2018-10-23 20:36:53.704794858 +0200
+++ /var/tmp/diff_new_pack.L4jGft/_new  2018-10-23 20:36:53.704794858 +0200
@@ -12,15 +12,15 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           imgp
-Version:        2.5
+Version:        2.6
 Release:        0
 Summary:        Image resizer and rotator
-License:        GPL-3.0+
+License:        GPL-3.0-or-later
 Group:          Productivity/Graphics/Convertors
 Url:            https://github.com/jarun/imgp
 Source0:        
https://github.com/jarun/imgp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

++++++ imgp-2.5.tar.gz -> imgp-2.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/CHANGELOG new/imgp-2.6/CHANGELOG
--- old/imgp-2.5/CHANGELOG      2018-02-19 04:29:45.000000000 +0100
+++ new/imgp-2.6/CHANGELOG      2018-10-20 18:20:31.000000000 +0200
@@ -1,3 +1,13 @@
+imgp v2.6
+2018-10-20
+
+What's in?
+- Support for progressive JPEG
+- Some bug fixes and documentation update
+- Package generation for some more distros
+
+-------------------------------------------------------------------------------
+
 imgp v2.5
 2018-02-19
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/README.md new/imgp-2.6/README.md
--- old/imgp-2.5/README.md      2018-02-19 04:29:45.000000000 +0100
+++ new/imgp-2.6/README.md      2018-10-20 18:20:31.000000000 +0200
@@ -5,13 +5,14 @@
 <a href="https://aur.archlinux.org/packages/imgp";><img 
src="https://img.shields.io/aur/version/imgp.svg?maxAge=600"; alt="AUR" /></a>
 <a href="https://github.com/jarun/homebrew-imgp";><img 
src="https://img.shields.io/badge/homebrew-TAP-blue.svg?maxAge=2592000"; 
alt="Homebrew TAP" /></a>
 <a 
href="https://packages.debian.org/search?keywords=imgp&searchon=names&exact=1";><img
 src="https://img.shields.io/badge/debian-9+-blue.svg?maxAge=2592000"; 
alt="Debian Stretch+" /></a>
+<a href="https://apps.fedoraproject.org/packages/imgp";><img 
src="https://img.shields.io/badge/fedora-27+-blue.svg?maxAge=2592000"; 
alt="Fedora 27+" /></a>
+<a href="https://software.opensuse.org/package/imgp";><img 
src="https://img.shields.io/badge/opensuse%20leap-15.0+-blue.svg?maxAge=2592000";
 alt="openSUSE Leap 15.0+" /></a>
 <a 
href="https://packages.ubuntu.com/search?keywords=imgp&searchon=names&exact=1";><img
 src="https://img.shields.io/badge/ubuntu-17.04+-blue.svg?maxAge=2592000"; 
alt="Ubuntu Zesty+" /></a>
-<a href="https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/";><img 
src="https://img.shields.io/badge/ubuntu-PPA-blue.svg?maxAge=2592000"; 
alt="Ubuntu PPA" /></a>
 <a href="https://github.com/jarun/imgp/blob/master/LICENSE";><img 
src="https://img.shields.io/badge/license-GPLv3-yellow.svg?maxAge=2592000"; 
alt="License" /></a>
 </p>
 
 <p align="center">
-<a href="https://asciinema.org/a/e5qa0mipgg23v70hdn6i99b8q";><img 
src="https://asciinema.org/a/e5qa0mipgg23v70hdn6i99b8q.png"; 
alt="imgp_asciicast" width="734"/></a>
+<a href="https://asciinema.org/a/88448";><img 
src="https://asciinema.org/a/88448.png"; alt="imgp_asciicast" width="734"/></a>
 </p>
 
 <p align="center"><i>Watch imgp resize a directory of images in lightning 
speed!</i></p>
@@ -22,11 +23,11 @@
 
 `imgp` intends to be a stronger replacement of the Nautilus Image Converter 
extension, not tied to any file manager and way faster. On desktop environments 
(like Xfce or LxQt) which do not integrate Nautilus, `imgp` will save your day.
 
-*Love smart and efficient terminal utilities? Explore my repositories. Buy me 
a cup of coffee if they help you.*
+*Love smart and efficient utilities? Explore [my 
repositories](https://github.com/jarun?tab=repositories). Buy me a cup of 
coffee if they help you.*
 
 <p align="center">
 <a href="https://saythanks.io/to/jarun";><img 
src="https://img.shields.io/badge/say-thanks!-ff69b4.svg"; /></a>
-<a 
href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RMLTQ76JSXJ4Q";><img
 src="https://img.shields.io/badge/Donate-$5-green.svg"; alt="Donate via 
PayPal!" /></a>
+<a 
href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RMLTQ76JSXJ4Q";><img
 src="https://img.shields.io/badge/PayPal-donate-green.svg"; alt="Donate via 
PayPal!" /></a>
 </p>
 
 ### Table of Contents
@@ -98,18 +99,20 @@
 
 #### From a package manager
 
-- [AUR](https://aur.archlinux.org/packages/imgp/)
-- 
[Debian](https://packages.debian.org/search?keywords=imgp&searchon=names&exact=1)
-- [Homebrew *tap*](https://github.com/jarun/homebrew-imgp) [`brew install 
jarun/imgp/imgp`]
-- [openSUSE](https://software.opensuse.org/package/imgp)
-- [Slackware](http://slackbuilds.org/repository/14.2/graphics/imgp/)
+- [AUR](https://aur.archlinux.org/packages/imgp/) (`yaourt -S imgp`)
+- 
[Debian](https://packages.debian.org/search?keywords=imgp&searchon=names&exact=1)
 (`apt-get install imgp`)
+- [Fedora](https://apps.fedoraproject.org/packages/imgp) (`dnf install imgp`)
+- [Homebrew *tap*](https://github.com/jarun/homebrew-imgp) (`brew install 
jarun/imgp/imgp`)
+- [openSUSE](https://software.opensuse.org/package/imgp) (`zypper in imgp`)
+- [Slackware](http://slackbuilds.org/repository/14.2/graphics/imgp/) 
(`slackpkg install imgp`)
 - [Source Mage](http://codex.sourcemage.org/test/graphics/imgp/) (`cast imgp`)
-- 
[Ubuntu](http://packages.ubuntu.com/search?keywords=imgp&searchon=names&exact=1)
-- [Ubuntu PPA](https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/)
+- 
[Ubuntu](http://packages.ubuntu.com/search?keywords=imgp&searchon=names&exact=1)
 (`apt-get install imgp`)
+- [Ubuntu PPA](https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/) 
(`apt-get install imgp`)
+- [Void 
Linux](https://github.com/void-linux/void-packages/tree/master/srcpkgs/imgp) 
(`xbps-install -S imgp`)
 
 #### Release packages
 
-Packages for Arch Linux, CentOS, Debian, Fedora and Ubuntu are available with 
the [latest stable release](https://github.com/jarun/imgp/releases/latest).
+Packages for Arch Linux, CentOS, Debian, Fedora, openSUSE Leap and Ubuntu are 
available with the [latest stable 
release](https://github.com/jarun/imgp/releases/latest).
 
 #### From source
 
@@ -141,7 +144,7 @@
 
 ```
 usage: imgp [-h] [-x res] [-o deg] [-a] [-c] [-d] [-e] [-f] [-i] [-k] [-m]
-            [-n] [--nn] [-p] [-q N] [-r] [-s byte] [-w] [-z]
+            [-n] [--nn] [-p] [--pr] [-q N] [-r] [-s byte] [-w] [-z]
             [PATH [PATH ...]]
 
 Resize, rotate JPEG and PNG images.
@@ -159,13 +162,15 @@
   -e, --eraseexif       erase exif metadata [default: off]
   -f, --force           force to exact specified resolution [default: off]
   -i, --includeimgp     re-process _IMGP files. * RISKY: refer to docs
-  -k, --keep            skip (but convert, if opted) images with matching
-                        specified hres or vres or --res=100 [default: off]
+  -k, --keep            skip (but convert or make progressive, if opted)
+                        images with matching specified hres or vres or
+                        --res=100 [default: off]
   -m, --mute            operate silently [default: informative]
   -n, --enlarge         enlarge smaller images [default: off]
   --nn                  use nearest neighbour interpolation for PNG images
                         [default: antialias]
   -p, --optimize        optimize the output images [default: off]
+  --pr, --progressive   save JPEG images as progressive [default: off]
   -q N, --quality N     quality factor (N=1-95, JPEG only) [default: 75]
   -r, --recurse         process directories recursively [default: off]
                         symbolic links are ignored
@@ -181,6 +186,7 @@
 - PNG files with lower target hres/vres are not converted (even if `--convert` 
is used). Run `imgp --convert (*.png)` separately to convert those.
 - Resize and rotate are lossy operations. For additional reductions in size 
try `--optimize` and `--eraseexif` options.
 - Option `--optimize` is slower, the encoder makes an extra pass over the 
image in order to select optimal encoder settings.
+- Progressive JPEG images are saved as progressive.
 
 ### Examples
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/auto-completion/bash/imgp-completion.bash 
new/imgp-2.6/auto-completion/bash/imgp-completion.bash
--- old/imgp-2.5/auto-completion/bash/imgp-completion.bash      2018-02-19 
04:29:45.000000000 +0100
+++ new/imgp-2.6/auto-completion/bash/imgp-completion.bash      2018-10-20 
18:20:31.000000000 +0200
@@ -24,6 +24,7 @@
         --nn
         -o --rotate
         -p --optimize
+        --pr --progressive
         -q --quality
         -r --recurse
         -s --size
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/auto-completion/fish/imgp.fish 
new/imgp-2.6/auto-completion/fish/imgp.fish
--- old/imgp-2.5/auto-completion/fish/imgp.fish 2018-02-19 04:29:45.000000000 
+0100
+++ new/imgp-2.6/auto-completion/fish/imgp.fish 2018-10-20 18:20:31.000000000 
+0200
@@ -4,22 +4,23 @@
 # Author:
 #   Arun Prakash Jana <engineera...@gmail.com>
 #
-complete -c imgp -s a -l adapt       --description 'adapt to resolution by 
orientation'
-complete -c imgp -s c -l convert     --description 'convert PNG to JPG format'
-complete -c imgp -s d -l dot         --description 'include hidden files (on 
Linux)'
-complete -c imgp -s e -l eraseexif   --description 'erase exif metadata'
-complete -c imgp -s f -l force       --description 'force to exact specified 
resolution'
-complete -c imgp -s h -l help        --description 'show help'
-complete -c imgp -s i -l includeimgp --description 're-process _IMGP files'
-complete -c imgp -s k -l keep        --description 'skip images with matching 
hres or vres'
-complete -c imgp -s m -l mute        --description 'operate silently'
-complete -c imgp -s n -l enlarge     --description 'enlarge smaller images'
-complete -c imgp      -l nn          --description 'use nearest neighbour 
interpolation for PNG'
-complete -c imgp -s o -l rotate   -r --description 'rotate clockwise by angle 
(in degrees)'
-complete -c imgp -s p -l optimize    --description 'optimize the output images'
-complete -c imgp -s q -l quality  -r --description 'specify quality factor 
(1-95)'
-complete -c imgp -s r -l recurse     --description 'process directories 
recursively'
-complete -c imgp -s s -l size     -r --description 'min byte size to process 
an image'
-complete -c imgp -s w -l overwrite   --description 'overwrite source images'
-complete -c imgp -s x -l res      -r --description 'output resolution in HxV 
or %'
-complete -c imgp -s z -l debug       --description 'enable debug logs'
+complete -c imgp -s a  -l adapt       --description 'adapt to resolution by 
orientation'
+complete -c imgp -s c  -l convert     --description 'convert PNG to JPG format'
+complete -c imgp -s d  -l dot         --description 'include hidden files (on 
Linux)'
+complete -c imgp -s e  -l eraseexif   --description 'erase exif metadata'
+complete -c imgp -s f  -l force       --description 'force to exact specified 
resolution'
+complete -c imgp -s h  -l help        --description 'show help'
+complete -c imgp -s i  -l includeimgp --description 're-process _IMGP files'
+complete -c imgp -s k  -l keep        --description 'skip images with matching 
hres or vres'
+complete -c imgp -s m  -l mute        --description 'operate silently'
+complete -c imgp -s n  -l enlarge     --description 'enlarge smaller images'
+complete -c imgp       -l nn          --description 'use nearest neighbour 
interpolation for PNG'
+complete -c imgp -s o  -l rotate   -r --description 'rotate clockwise by angle 
(in degrees)'
+complete -c imgp -s p  -l optimize    --description 'optimize the output 
images'
+complete -c imgp -l pr -l progressive --description 'save JPEG as progressive'
+complete -c imgp -s q  -l quality  -r --description 'specify quality factor 
(1-95)'
+complete -c imgp -s r  -l recurse     --description 'process directories 
recursively'
+complete -c imgp -s s  -l size     -r --description 'min byte size to process 
an image'
+complete -c imgp -s w  -l overwrite   --description 'overwrite source images'
+complete -c imgp -s x  -l res      -r --description 'output resolution in HxV 
or %'
+complete -c imgp -s z  -l debug       --description 'enable debug logs'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/auto-completion/zsh/_imgp 
new/imgp-2.6/auto-completion/zsh/_imgp
--- old/imgp-2.5/auto-completion/zsh/_imgp      2018-02-19 04:29:45.000000000 
+0100
+++ new/imgp-2.6/auto-completion/zsh/_imgp      2018-10-20 18:20:31.000000000 
+0200
@@ -22,6 +22,7 @@
     '(--nn)--n[use nearest neighbour interpolation for PNG]'
     '(-o --rotate)'{-o,--rotate}'[rotate clockwise by angle]:degree'
     '(-p --optimize)'{-p,--optimize}'[optimize the output images]'
+    '(--pr --progressive)'{--pr,--progressive}'[save JPEG as progressive]'
     '(-q --quiet)'{-q,--quality}'[specify quality factor (1-95)]:factor'
     '(-r --recurse)'{-r,--recurse}'[process directories recursively]'
     '(-s --size)'{-s,--size}'[min byte size to process an image]:bytes'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/imgp new/imgp-2.6/imgp
--- old/imgp-2.5/imgp   2018-02-19 04:29:45.000000000 +0100
+++ new/imgp-2.6/imgp   2018-10-20 18:20:31.000000000 +0200
@@ -34,6 +34,7 @@
 convert = False  # convert PNG to JPG
 dot = False  # process hidden files starting with .
 eraseexif = False  # erase EXIF metadata
+progressive = False  # save as a progressive image
 force = False  # forced to exact specified resolution
 includeimgp = False  # process _IMGP files
 keep = False  # ignore images with matching hres or vres
@@ -50,7 +51,7 @@
 png_ip = PIL.Image.ANTIALIAS  # default interpolation for PNG
 fill_color = '#ffffff'  # BG color to strip alpha channel
 init_time = time.time()  # profile the total time taken
-_VERSION_ = '2.5'  # current program version
+_VERSION_ = '2.6'  # current program version
 
 # Globals for multiprocessing
 pool = None
@@ -71,7 +72,7 @@
 
     try:
         return(int(hxv[0]), int(hxv[1]))
-    except:
+    except Exception:
         return (0, 0)
 
 
@@ -119,13 +120,13 @@
         with lock:
             print(e)
 
-
 def rotate_image(src):
     '''Rotate a source image'''
 
     global lock
 
     converted = False
+    _progressive = progressive
     name, ext = os.path.splitext(src)
     if name.endswith(pad) and not includeimgp:
         return
@@ -133,16 +134,31 @@
     try:
         img = Image.open(src)
         _format = img.format
-        if not (_format == 'JPEG' or _format == 'PNG' or _format == 'MPO'):
+
+        if _format not in ['JPEG', 'PNG', 'MPO']:
+            if debug:
+                lock_print(src + ': not JPEG/PNG/MPO. format: ' + _format)
+            return
+
+        if convert and _format == 'PNG' and img.mode == 'P':
             if debug:
-                lock_print(src + ': not JPEG or PNG image. format: ' + _format)
+                lock_print('rotate_image: cannot convert PNG files in palette 
mode')
             return
+
+        try:
+            if _format == 'JPEG' and not _progressive and 
img.info['progressive']:
+                if debug:
+                    lock_print('resize_image: progressive')
+                _progressive = True
+        except Exception:
+            pass
+
         try:
             if eraseexif:
                 exifdata = b''
             else:
                 exifdata = img.info['exif']
-        except:
+        except Exception:
             exifdata = b''
     except OSError as e:
         if not str(e).startswith('cannot identify image file'):
@@ -174,7 +190,7 @@
         dest = name + suffix + ext
 
     try:
-        img.save(dest, _format, quality=qual, optimize=optimal, exif=exifdata)
+        img.save(dest, _format, quality=qual, optimize=optimal, exif=exifdata, 
progressive=_progressive)
 
         if not mute:
             lock_print('%s %ld bytes\n' % (stats, os.path.getsize(dest)))
@@ -194,6 +210,7 @@
     global HRES, VRES, lock
 
     converted = False
+    _progressive = progressive
     name, ext = os.path.splitext(src)
     if name.endswith(pad) and not includeimgp:
         return
@@ -202,24 +219,42 @@
         img = Image.open(src)
         _format = img.format
 
-        if not (_format == 'JPEG' or _format == 'PNG' or _format == 'MPO'):
+        if _format not in ['JPEG', 'PNG', 'MPO']:
             if debug:
-                lock_print(src + ': not JPEG or PNG image. format: ' + _format)
+                lock_print(src + ': not JPEG/PNG/MPO. format: ' + _format)
             return
 
-        # if 'only' convert option is specified,
-        # nothing to be done for non-PNG images
-        if no_res_opt and not optimal and _format != 'PNG':
+        if convert and _format == 'PNG' and img.mode == 'P':
             if debug:
-                lock_print('resize_image: cannot convert non-PNG')
+                lock_print('resize_image: cannot convert PNG files in palette 
mode')
             return
 
+        # check if convert or progressive is specified without any resolution 
option
+        if no_res_opt:
+            if convert and _format != 'PNG':
+                if debug:
+                    lock_print('resize_image: cannot convert non-PNG')
+                return
+
+            if progressive and _format not in ['JPEG', 'MPO']:
+                if debug:
+                    lock_print('resize_image: cannot make non-JPEG/MPO 
progressive')
+                return
+
+        try:
+            if _format == 'JPEG' and not _progressive and 
img.info['progressive']:
+                if debug:
+                    lock_print('resize_image: progressive')
+                _progressive = True
+        except Exception:
+            pass
+
         try:
             if eraseexif:
                 exifdata = b''
             else:
                 exifdata = img.info['exif']
-        except:
+        except Exception:
             exifdata = b''
     except OSError as e:
         if not str(e).startswith('cannot identify image file'):
@@ -232,8 +267,12 @@
     ImageFile.MAXBLOCK = hres * vres
 
     antialias = png_ip if _format == 'PNG' else PIL.Image.ANTIALIAS
+
     if keep and (HRES == hres or VRES == vres or scale == 100):
-        if not (_format == 'PNG' and convert):
+        if progressive and _format not in ['JPEG', 'MPO']:
+            return
+
+        if convert and _format != 'PNG':
             return
     elif scale:
         if scale == 100:
@@ -253,7 +292,7 @@
 
         img = img.resize((_hres, _vres), antialias)
         if debug:
-            lock_print('resize_image: scaled to [%dx%d]' % (HRES, VRES))
+            lock_print('resize_image: scaled to [%dx%d]' % (_hres, _vres))
     elif HRES == 0 or VRES == 0:
         if HRES:
             if not enlarge and HRES > hres:
@@ -390,7 +429,7 @@
         dest = name + suffix + ext
 
     try:
-        img.save(dest, _format, quality=qual, optimize=optimal, exif=exifdata)
+        img.save(dest, _format, quality=qual, optimize=optimal, exif=exifdata, 
progressive=_progressive)
 
         if not mute:
             lock_print('%s %ld bytes\n' % (stats, os.path.getsize(dest)))
@@ -460,7 +499,7 @@
     addarg('-i', '--includeimgp', action='store_true',
            help='re-process _IMGP files. * RISKY: refer to docs')
     addarg('-k', '--keep', action='store_true',
-           help='skip (but convert, if opted) images with matching specified \
+           help='skip (but convert or make progressive, if opted) images with 
matching specified \
                  hres or vres or --res=100 [default: off]')
     addarg('-m', '--mute', action='store_true',
            help='operate silently [default: informative]')
@@ -470,6 +509,8 @@
            help='use nearest neighbour interpolation for PNG images [default: 
antialias]')
     addarg('-p', '--optimize', action='store_true',
            help='optimize the output images [default: off]')
+    addarg('--pr', '--progressive', action='store_true',
+           help='save JPEG images as progressive [default: off]')
     addarg('-q', '--quality', type=int, metavar='N', choices=range(1, 96),
            help='quality factor (N=1-95, JPEG only) [default: 75]')
     addarg('-r', '--recurse', action='store_true',
@@ -493,8 +534,9 @@
 
 
 def main():
-    global HRES, VRES, scale, rotate, adapt, convert, dot, eraseexif, force, 
includeimgp, keep, enlarge, \
-           optimal, mute, recurse, size, qual, overwrite, debug, no_res_opt, 
pool, init_time, count, png_ip
+    global HRES, VRES, scale, rotate, adapt, convert, dot, eraseexif, force, \
+           includeimgp, keep, enlarge, optimal, progressive, mute, recurse, 
size, \
+           qual, overwrite, debug, no_res_opt, pool, init_time, count, png_ip
 
     args = parse_args()
 
@@ -520,7 +562,7 @@
                     print('scale should be > 0%')
                     return
                 if scale > 100 and not args.enlarge:
-                    print('use --enlarge is to scale > 100%')
+                    print('use --enlarge to scale > 100%')
                     return
             except Exception:
                 print('invalid value for --res')
@@ -530,7 +572,7 @@
         if not rotate:
             print('cannot rotate by 0 degree')
             return
-    elif args.convert or args.optimize:
+    elif args.convert or args.pr or args.optimize:
         no_res_opt = True
         scale = 100
     else:
@@ -546,6 +588,7 @@
     keep = args.keep
     enlarge = args.enlarge
     optimal = args.optimize
+    progressive = args.pr
     mute = args.mute
     recurse = args.recurse
     if args.size is not None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/imgp.1 new/imgp-2.6/imgp.1
--- old/imgp-2.5/imgp.1 2018-02-19 04:29:45.000000000 +0100
+++ new/imgp-2.6/imgp.1 2018-10-20 18:20:31.000000000 +0200
@@ -1,4 +1,4 @@
-.TH "IMGP" "1" "19 Feb 2018" "Version 2.5" "User Commands"
+.TH "IMGP" "1" "20 Oct 2018" "Version 2.6" "User Commands"
 .SH NAME
 imgp \- Resize, rotate JPEG and PNG images.
 .SH SYNOPSIS
@@ -45,6 +45,8 @@
 - Resize and rotate are lossy operations. For additional reductions in size 
try '--optimize' and '--eraseexif' options.
 .br
 - Option '--optimize' is slower, the encoder makes an extra pass over the 
image in order to select optimal encoder settings.
+.br
+- Progressive JPEG images are saved as progressive.
 .SH OPTIONS
 .TP
 .BI "-h, --help"
@@ -75,7 +77,7 @@
 Process \fI_IMGP\fR files. Risky due to potential race conditions.
 .TP
 .BI "-k, --keep"
-Do not process if image hres or vres matches specified hres or vres, or --res 
is 100. However, PNG images are converted to JPEG if --convert option is 
specified.
+Do not process if image hres or vres matches specified hres or vres, or --res 
is 100. However, PNG images are converted to JPEG if --convert option is 
specified and JPEG images are made progressive is --progressive option is 
specified.
 .TP
 .BI "-n, --enlarge"
 Enlarge smaller images. By default smaller images are not scaled if specified 
resolution is greater.
@@ -86,16 +88,19 @@
 .BI "-p, --optimize"
 Optimize output images using PIL library optimization algorithm. Disabled by 
default.
 .TP
+.BI "--pr, --progressive"
+Save all output JPEG images as progressive, even if the source is not.
+.TP
 .BI "-q, --quality=" N
 Save the image with a specified quality factor N (scale 1-95, default 75). 
JPEG only.
 .TP
 .BI "-m, --mute"
 Do not show any operational output.
 .TP
-.BI "-r, --recursive"
+.BI "-r, --recurse"
 Recursively process sub-directories. By default only the specified directory 
is processed. Symbolic links are ignored to avoid recursive loops.
 .TP
-.BI "-s, --recursive=" byte
+.BI "-s, --size=" byte
 Minimum size in bytes required to process an image. Acts as a guard against 
processing low-resolution images. Default 1024 bytes.
 .TP
 .BI "-w, --overwrite"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imgp-2.5/packagecore.yaml 
new/imgp-2.6/packagecore.yaml
--- old/imgp-2.5/packagecore.yaml       2018-02-19 04:29:45.000000000 +0100
+++ new/imgp-2.6/packagecore.yaml       2018-10-20 18:20:31.000000000 +0200
@@ -13,6 +13,24 @@
     deps:
       - python-pillow
       - python
+  centos7.1:
+    builddeps:
+      - make
+    deps:
+      - python-pillow
+      - python
+    commands:
+      pre:
+        - yum install epel-release
+  centos7.2:
+    builddeps:
+      - make
+    deps:
+      - python-pillow
+      - python
+    commands:
+      pre:
+        - yum install epel-release
   centos7.3:
     builddeps:
       - make
@@ -22,12 +40,27 @@
     commands:
       pre:
         - yum install epel-release
+  centos7.4:
+    builddeps:
+      - make
+    deps:
+      - python-pillow
+      - python
+    commands:
+      pre:
+        - yum install epel-release
   debian9:
     builddeps:
       - make
     deps:
       - python3-pillow
       - python3
+  fedora25:
+    builddeps:
+      - make
+    deps:
+      - python3-pillow
+      - python3
   fedora26:
     builddeps:
       - make
@@ -40,6 +73,24 @@
     deps:
       - python3-pillow
       - python3
+  fedora28:
+    builddeps:
+      - make
+    deps:
+      - python3-pillow
+      - python3
+  opensuse42.1:
+    builddeps:
+      - make
+    deps:
+      - python3-Pillow
+      - python3
+  opensuse42.2:
+    builddeps:
+      - make
+    deps:
+      - python3-Pillow
+      - python3
   opensuse42.3:
     builddeps:
       - make
@@ -52,7 +103,7 @@
     deps:
       - python3-pillow
       - python3
-  ubuntu17.10:
+  ubuntu18.04:
     builddeps:
       - make
     deps:


Reply via email to