Log file Viewer
Help
|
Karma
| Search:
#pil logs for Wednesday the 22nd of May, 2013
(
Back to #pil overview
) (
Back to channel listing
) (
Animate logs
)
[
23:28:02
] <
Pavlov
> anyone have any suggestions on how to get better image resizing quality? specifically downsizing
[
23:28:24
] <
Pavlov
> i've got a jpeg source, say 240x240, and am trying to resize down to 60x60. i'm using ANTIALIAS
[
23:28:32
] <
Pavlov
> saving back out to jpeg, quality=90
[
23:28:47
] <
Pavlov
> but the result is substantially worse than if i just let the browser resize the image
[
23:30:41
] <
wiredfool
> pavlov: have you tried bicubic fitering?
[
23:31:13
] <
wiredfool
> alternately, a slight blur might be helpful as well.
[
23:32:05
] <
Pavlov
> bicubic wasn't awesome
[
23:32:08
] <
Pavlov
> let me compare though
[
23:33:17
] <
Pavlov
> bicubic just looks like lots of jpeg artifacts, even if i save it out as a png
[
23:34:15
] <
wiredfool
> what software/version are you using?
[
23:34:19
] <
Pavlov
> let me see
[
23:35:48
] <
Pavlov
> it looks like i have PIL 1.1.7 installed
[
23:36:39
] <
Pavlov
> and i think probably some fairly recent libjpeg
[
23:37:02
] <
wiredfool
> it's not 1 bit or a paletted image?
[
23:37:08
] <
wiredfool
> what platform?
[
23:37:21
] <
Pavlov
> its just a jpeg image
[
23:37:28
] <
Pavlov
> its uh
[
23:37:39
] <
wiredfool
> ok, so probably just a normal RGB
[
23:38:38
] <
Pavlov
> yeah
[
23:38:42
] <
Pavlov
> https://dl.dropboxusercontent.com/u/11413338/8bd352129eacc9de07c03b0ece8ba055.jpeg for reference
[
23:41:50
] <
Pavlov
> https://dl.dropboxusercontent.com/u/11413338/example.png has the browser resize on the left, PIL bicubic on the right
[
23:42:22
] <
Pavlov
> (the bicubi is being spit out as a png to avoid jpeg quality/etc issues)
[
23:44:43
] <
wiredfool
> are you on a retina mac?
[
23:45:09
] <
Pavlov
> yeah
[
23:45:23
] <
Pavlov
> Am I just being dumb and needing to double the size?
[
23:45:26
] <
wiredfool
> The browser is resizing at 2x
[
23:46:16
] <
wiredfool
> that's a 120x120 image in the browser
[
23:47:40
] <
Pavlov
> mm, ok let me futz with that for a bit
[
23:47:48
] <
Pavlov
> i'm much happier with that being the case :)
[
23:49:02
] <
wiredfool
> the resize looks ok to me at 120x120
[
23:49:06
] <
Pavlov
> yeah
[
23:49:17
] <
wiredfool
> it looks small at 60x60, but bad at pixel doubled 60x60
[
23:50:12
] <
Pavlov
> thanks
[
23:50:25
] <
Pavlov
> seperately, is pillow what the cool kids are using these days?
[
23:51:43
] <
wiredfool
> It's what I'm working on
[
23:52:00
] <
wiredfool
> It's got some momentum
[
23:52:57
] <
wiredfool
> but yeah, I think so