Hi all, Hi Cienca,
I ran into the same issue: "Error creating thumbnail Error code: -1"
My setup: MediaWiki 1.27.0, PHP 5.6.18 (cgi-fcgi), MySQL 5.6.29, ImageMagick 6.9.2-0 Q16 i686
Here's what my debug file says:
File::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/260.jpg/70px-260.jpg
FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/0/05/260.jpg/70px-260.jpg does not exist.
TransformationalImageHandler::doTransform: creating 70x70 thumbnail at /tmp/transform_4c3f03fe95f1.jpg using scaler im
TransformationalImageHandler::doTransform: called wfMkdirParents(/tmp)
TransformationalImageHandler::{closure}: Running convert -version
wfShellExec: /bin/bash '/html/domain.org/mediawiki/includes/limit.sh' ''\''/usr/local/bin/convert'\'' -version' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
BitmapHandler::transformImageMagick: running ImageMagick: '/usr/local/bin/convert' '-quality' '80' '-background' 'white' '-define' 'jpeg:size=70x70' '/html/domain.org/mediawiki/images/0/05/260.jpg' '-thumbnail' '70x70!' '-set' 'comment' 'File source: http://domain.org/wiki/Datei:260.jpg' '+set' 'Thumb::URI' '-depth' '8' '-sharpen' '0x0.4' '-rotate' '-0' '-sampling-factor' '2x2,1x1,1x1' '/tmp/transform_4c3f03fe95f1.jpg'
wfShellExec: /bin/bash '/html/domain.org/mediawiki/includes/limit.sh' 'OMP_NUM_THREADS='\''1'\'' '\''/usr/local/bin/convert'\'' '\''-quality'\'' '\''80'\'' '\''-background'\'' '\''white'\'' '\''-define'\'' '\''jpeg:size=70x70'\'' '\''/html/domain.org/mediawiki/images/0/05/260.jpg'\'' '\''-thumbnail'\'' '\''70x70!'\'' '\''-set'\'' '\''comment'\'' '\''File source: http://domain.org/wiki/Datei:260.jpg'\'' '\''+set'\'' '\''Thumb::URI'\'' '\''-depth'\'' '\''8'\'' '\''-sharpen'\'' '\''0x0.4'\'' '\''-rotate'\'' '\''-0'\'' '\''-sampling-factor'\'' '\''2x2,1x1,1x1'\'' '\''/tmp/transform_4c3f03fe95f1.jpg'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
[thumbnail] thumbnail failed on domain.org: error -1 "" from "'/usr/local/bin/convert' '-quality' '80' '-background' 'white' '-define' 'jpeg:size=70x70' '/html/domain.org/mediawiki/images/0/05/260.jpg' '-thumbnail' '70x70!' '-set' 'comment' 'File source: http://domain.org/wiki/Datei:260.jpg' '+set' 'Thumb::URI' '-depth' '8' '-sharpen' '0x0.4' '-rotate' '-0' '-sampling-factor' '2x2,1x1,1x1' '/tmp/transform_4c3f03fe95f1.jpg'"
[thumbnail] Removing bad 1499-byte thumbnail "/tmp/transform_4c3f03fe95f1.jpg". unlink() succeeded
I also tried the 3 commands on Putty. After the second one (the command after BitmapHandler::transformImageMagick: running ImageMagick:
) the file "transform_4c3f03fe95f1.jpg" is successfully generated.
So I guess it must be something wrong with the third command. However I didn't get any error message on Putty...
I hope you can help...
PS: If I set $wgUseImageMagick = false;
thumbnailing works fine.