Extension talk:VipsScaler

Jump to navigation Jump to search

About this board

Unable to get this plugin to work on Ubuntu 12.04.3LTS

1
Pjb304 (talkcontribs)

I've installed the latest VIPS from git and added the following to /etc/bash.bashrc so that's loaded whenever a bash shell is opened

export VIPSHOME=/usr/local
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VIPSHOME/lib
export PATH=$PATH:$VIPSHOME/bin
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$VIPSHOME/lib/pkgconfig
export MANPATH=$MANPATH:$VIPSHOME/man
export PYTHONPATH=$VIPSHOME/lib/python2.7/site-packages

Having done this I can execute

/bin/bash '/my-site-file-location/includes/limit.sh' 'IM_CONCURRENCY='\1'\ '\/usr/local/bin/vips'\ '\shrink'\ '\/my-site-file-location/images/Beagle-hack.jpg'\ '\/tmp/vips_67693d1c5204-1.v'\ '\6.248779535247021677e+0'\ '\6.248372819578234427e+0'\ 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'\; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=409600; MW_WALL_CLOCK_LIMIT=180'

without problems as the www-data user. However, it doesn't work from the wiki itself. PHP Safe mode is off, any ideas as to what the problem is?

wfShellExec: /bin/bash '/my-site-file-location/includes/limit.sh' 'IM_CONCURRENCY='\1'\ '\/usr/local/bin/vips'\ '\shrink'\ '\/my-site-file-location/images/Beagle-hack.jpg'\ '\/tmp/vips_67693d1c5204-1.v'\ '\6.248779535247021677e+0'\ '\6.248372819578234427e+0'\ 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'\; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=409600; MW_WALL_CLOCK_LIMIT=180'
[exec] Possibly missing executable file: /bin/bash '/my-site-file-location/includes/limit.sh' 'IM_CONCURRENCY='\1'\ '\/usr/local/bin/vips'\ '\shrink'\ '\/my-site-file-location/images/Beagle-hack.jpg'\ '\/tmp/vips_67693d1c5204-1.v'\ '\6.248779535247021677e+0'\ '\6.248372819578234427e+0'\ 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'\; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=409600; MW_WALL_CLOCK_LIMIT=180'
VipsScaler::doTransform: vips command failed!
Reply to "Unable to get this plugin to work on Ubuntu 12.04.3LTS"
G.Hagedorn (talkcontribs)

... and: What is the development perspective? Thanks in advance,

Legoktm (talkcontribs)

I guess this mailing list post answers your question.

Reply to "Where or how is it used on WMF?"
There are no older topics