Topic on Project:Support desk

Some of Bizagi's Thumbnails didn't display on Mediawiki

9
Pmt-it (talkcontribs)

Hello everyone,

When I export my Bizagi's procedure to MediaWiki, some of Bizagi's Thumbnails display and some other not display and there's an error message instead of a thumbnail on Mediawiki.

I read a blog that dealt with image size. It said that if the image size was important, mediawiki could not resize it to become Thumbnails, but a setting exist to fix it.

My question is, what's the setting to fix my problem please?

Malyacko (talkcontribs)
Pmt-it (talkcontribs)

Hi Malyacko,

Bizagi is an app in which we can export procedure to Wiki format compatible Mediawiki.

I use the latest version of Mediawiki.

The error message isː "Erreur lors de la création de la miniature :" (french) and translate by "Error creating thumbnail:".

I had to add those settings below to LocalSettings in order to display images from Bizagi to Mediawikiː

$wgAllowImageTag = true;

$wgGroupPermissions['*']['upload'] = true;

$wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg');

$wgEnableUploads = true;

$wgHashedUploadDirectory = true;

$wgUrlProtocols[] = "data:";

What I've done to try to correct thumbnail's error is those settings below but it doesn't workː

$wgUseImageResize = true;

$wgUseImageMagick = true;

#I copied ImageMagick portable folders in $IP/extra/convert.

$wgImageMagickConvertCommand = "$IP/extra/convert";

# For SVG image support

$wgFileExtensions[] = 'svg';

$wgAllowTitlesInSVG = true;

$wgSVGConverter = 'ImageMagick';

$wgSVGConverters = array(

    'ImageMagick' => '"$IP/extra/convert" -background white -geometry $width $input $output',

  );

Please help, I'm a novice...thanks a lot

Ciencia Al Poder (talkcontribs)

We need a more descriptive error than a generic "Error creating thumbnail". Try setting $wgShowExceptionDetails to true.

If you don't get a more descriptive error message, you'll need to query your thumb.php script with a file that has this problem, for example http://yourwikisite/thumb.php?f=Image_with_problems.png&w=200 and it should give the error directly.

Pmt-it (talkcontribs)

Hi Ciencia Al Poder,

I set $wgShowExceptionDetails to true. i got the error message ː"The source file 'picture._namepng' does not exist.". I noticed inside ./mediawiki/images/thumb, images that haven't been converted to thumbnail are not displayed in mediawiki website. I think that's the problem.

Is it because mediawiki don't manage large images ? So do I have to find a setting to help to convert them ?

Thanks for help

AhmadF.Cheema (talkcontribs)
Pmt-it (talkcontribs)

For other articles I had this error at the place of thumbnails ː

Error Creating Thumbnail: Unable to Save Thumbnail to Destination

I set this $wgGenerateThumbnailOnParse = true;

But still have the problem.

I don't understand why in some Bizagi's procedure thumbnails display and in other nothing?

please help

Ciencia Al Poder (talkcontribs)

"Unable to Save Thumbnail to Destination" probably means permission problems in the images directory. Be sure all your folders and files inside the images folder have correct owner and permissions, recursively.

Pmt-it (talkcontribs)

I've checked images directory and all folders and files, all have the same correct owner and permissions recursively.

Another suggestion, please?

Reply to "Some of Bizagi's Thumbnails didn't display on Mediawiki"