Package Details: gimp-imagescaler-git 20130211-1

Git Clone URL: https://aur.archlinux.org/gimp-imagescaler-git.git (read-only)
Package Base: gimp-imagescaler-git
Description: Gamma-correct image scaling (Gimp, Python)
Upstream URL: https://blog.hartwork.org/?p=1173
Licenses: GPL
Conflicts: gimp-imagescaler
Provides: gimp-imagescaler
Submitter: intgr
Maintainer: intgr
Last Packager: intgr
Votes: 2
Popularity: 0.000000
First Submitted: 2013-02-11 09:06
Last Updated: 2015-06-08 12:58

Required by (0)

Sources (0)

Latest Comments

intgr commented on 2015-01-23 12:37

Disowned, currently I have no interest in fixing this.

Rulatir commented on 2015-01-23 10:50

Broken.

Happens every time when using cubic interpolation:

Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 735, in response
dialog.res = run_script(params)
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/usr/lib/gimp/2.0/plug-ins/imagescalerplugin.py", line 32, in process
scale_image(img, width, height, interpol, gamma, GimpEnv())
File "/usr/lib/python2.7/site-packages/imagescaler/main.py", line 86, in scale_image
scale_copy_layer(dst_layer, layer_backups[i], interpol, gamma, env, i, layer_count, cache_exp2linear)
File "/usr/lib/python2.7/site-packages/imagescaler/main.py", line 64, in scale_copy_layer
rgba = f(src_region, src_layer, sx, sy, xfrac, yfrac, gamma, cache_exp2linear)
File "/usr/lib/python2.7/site-packages/imagescaler/algorithms/cubic_gimp.py", line 40, in interpolate_cubic_gimp
p0 = cubic_spline_fit(xfrac, s0[3], s0[7], s0[11], s0[15])
IndexError: list index out of range

Happens every time when using bi-linear interpolation:

Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 735, in response
dialog.res = run_script(params)
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/usr/lib/gimp/2.0/plug-ins/imagescalerplugin.py", line 32, in process
scale_image(img, width, height, interpol, gamma, GimpEnv())
File "/usr/lib/python2.7/site-packages/imagescaler/main.py", line 86, in scale_image
scale_copy_layer(dst_layer, layer_backups[i], interpol, gamma, env, i, layer_count, cache_exp2linear)
File "/usr/lib/python2.7/site-packages/imagescaler/main.py", line 64, in scale_copy_layer
rgba = f(src_region, src_layer, sx, sy, xfrac, yfrac, gamma, cache_exp2linear)
File "/usr/lib/python2.7/site-packages/imagescaler/algorithms/bilinear_gimp.py", line 38, in interpolate_bilinear_gimp
alphasum = weighted_sum(xfrac, yfrac, p1[3], p2[3], p3[3], p4[3])
IndexError: list index out of range

In addition, this message box is shown after the python-fu-imagescaler dialog is cancelled after the above errors:

Plug-In 'Scale Image with correct Gamma' left image undo in inconsistent state, closing open undo groups.

intgr commented on 2013-02-11 09:07

After installing you'll have a new menu item in Gimp: Image -> Scale Image with correct Gamma...