[Bug 66337] Scaling of images should take place in a linear colour space

2014-07-29 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=66337

John Cupitt jcup...@gmail.com changed:

   What|Removed |Added

 CC||jcup...@gmail.com

--- Comment #2 from John Cupitt jcup...@gmail.com ---
Some benchmarks: 

$ time vipsthumbnail -a wtc.jpg --vips-leak
memory: high-water mark 65.98 MB
real0m4.039s
user0m4.003s
sys0m0.038s
$ time vipsthumbnail wtc.jpg --vips-leak
memory: high-water mark 6.22 MB
real0m0.307s
user0m0.289s
sys0m0.020s

wtc.jpg is a 10,000 x 10,000 pixel RGB image.

The main source of the slowdown is that you can't use libjpeg's very fast
shrink-on-load feature, since that's calculated in Y, which is not linear.
Instead, you have to decode the entire image, convert to a linear space
(vipsthumbnail uses XYZ), and then shrink that. 

-a is much more competitive if you use a format that doesn't support
shrink-on-load, such as vanilla tif:

$ time vipsthumbnail wtc.tif --vips-leak
memory: high-water mark 44.31 MB
real0m2.662s
user0m0.513s
sys0m0.119s
$ time vipsthumbnail -a wtc.tif --vips-leak
memory: high-water mark 66.62 MB
real0m3.623s
user0m3.547s
sys0m0.078s

memuse should not be huge, the whole process can still be streamed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 66337] Scaling of images should take place in a linear colour space

2014-06-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=66337

Andre Klapper aklap...@wikimedia.org changed:

   What|Removed |Added

   Priority|Unprioritized   |Normal
Version|unspecified |1.24-git

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 66337] Scaling of images should take place in a linear colour space

2014-06-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=66337

Bawolff (Brian Wolff) bawolff...@gmail.com changed:

   What|Removed |Added

   Priority|Normal  |Low

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 66337] Scaling of images should take place in a linear colour space

2014-06-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=66337

--- Comment #1 from Bawolff (Brian Wolff) bawolff...@gmail.com ---

 Its unclear if something similar can be done in vips well still using the
 very efficient sequential read and not creating a giant temporary file.
 There is a -a option to vipsthumbnail that could maybe be used.

In my test, the -a option slowed things down quite a bit, and increased memory
usage to beyond 400mb. :(

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l