Commits

Simon Sapin committed 89ed8e9

Link to the ImageMagick docs for the 'quality' parameter.

0 is *not* the best comperssion for PNG.

Comments (0)

Files changed (1)

pystacia/image/__init__.py

            Saves an image to disk under given filename, format is determined
            from filename unless specified explicitely. The interpretation of
            quality parameter depends on the chosen format. E.g. for
-           :term:`JPEG` it's a integer number between 1 (worst) and 100 (best)
-           whilst for lossless format like
-           :term:`PNG` 0 means best compression. The default value is to choose
+           :term:`JPEG` it's a integer number between 1 (worst) and 100 (best).
+           The default value is to choose
            best available compression that preserves good quality image.
+           The details are in the `ImageMagick documentation
+           <http://www.imagemagick.org/script/command-line-options.php#quality>`.
 
            >>> img = blank(10, 10)
            >>> img.write('example.jpg')
            algorithms but typically this parameter is not used.
            The interpretation of quality parameter depends
            on the chosen format. E.g. for :term:`JPEG` it's integer number
-           between 1 (worst) and 100 (best) whilst for lossless format like
-           :term:`PNG` 0 means best compression. The default value is to choose
+           between 1 (worst) and 100 (best). The default value is to choose
            best available compression that preserves good quality image.
+           The details are in the `ImageMagick documentation
+           <http://www.imagemagick.org/script/command-line-options.php#quality>`.
         """
         blob = io.get_blob(self, format, compression, quality)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.