Jump to content
MediaWiki

Extension talk:VipsScaler

Add topic
From mediawiki.org
Latest comment: 1 year ago by Kghbln in topic Image and thumb limits
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.


Where or how is it used on WMF?

[edit ]
Latest comment: 13 years ago 2 comments2 people in discussion

... and: What is the development perspective? Thanks in advance, G.Hagedorn (talk) 08:09, 24 October 2012 (UTC) Reply

I guess this mailing list post answers your question. Legoktm (talk) 19:58, 4 June 2013 (UTC) Reply

Unable to get this plugin to work on Ubuntu 12.04.3LTS

[edit ]
Latest comment: 12 years ago 1 comment1 person in discussion

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! Pjb304 (talk) 13:23, 19 January 2014 (UTC) Reply  

Image and thumb limits

[edit ]
Latest comment: 1 year ago 2 comments1 person in discussion

This extension appears to ignore $wgThumbLimits and $wgImageLimits. There is no issue here, but it should probably be documented.

Regarding $wgThumbLimits, four thumbs are generated according to the $wgVipsOptions configuration settings.

Regarding $wgImageLimits, only one thumb link and the link to the full-size image are shown. [[kgh]] (talk) 08:43, 2 November 2024 (UTC) Reply

Ah, these two parameters are only being ignored if I set $wgGenerateThumbnailOnParse = true;. If I set this parameter to false, I get the whole lot. [[kgh]] (talk) 16:07, 2 November 2024 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /