← Back to team overview

phatch-dev team mailing list archive

[Bug 384522] Re: Setting a too low JPG Maximum size

 

** Changed in: phatch
       Status: Fix Committed => Fix Released

** Changed in: phatch
    Milestone: None => 0.2.1

-- 
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!: Fix Released

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.



References