← Back to team overview

phatch-dev team mailing list archive

[Bug 384522] [NEW] Setting a too low JPG Maximum size

 

Public bug reported:

I'm attaching two action lists: case1.phatch and case2.phatch and one
photo

The second action list case2.phatch sets the JPG Maximum size to 30 KB
which is possible. But the resulting size is 37.7 KB instead of 30 KB.

The first action list case1.phatch sets the JPG Maximum size to 10 KB
which is apparently impossible. Calculation result is a zero quality
which PIL is ignoring. To fix this we need to check if the quality
equals zero and set it to 1.

** Affects: phatch
     Importance: Undecided
         Status: New

-- 
Setting a too low JPG Maximum size
https://bugs.launchpad.net/bugs/384522
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: New

Bug description:
I'm attaching two action lists: case1.phatch and case2.phatch and one photo

The second action list case2.phatch sets the JPG Maximum size to 30 KB which is possible. But the resulting size is 37.7 KB instead of 30 KB.

The first action list case1.phatch sets the JPG Maximum size to 10 KB which is apparently impossible. Calculation result is a zero quality which PIL is ignoring. To fix this we need to check if the quality equals zero and set it to 1.



Follow ups

References