PlantUML icon indicating copy to clipboard operation
PlantUML copied to clipboard

place images in /images/plantuml instead of /images

Open cotto opened this issue 8 years ago • 4 comments

When PlantUML renders an image, it puts both the image and its uml directly into /images. Using an extension-specific subdirectory like /images/plantuml would make image management much easier and cleaner.

cotto avatar Mar 10 '17 18:03 cotto

mkdir ./images/plantuml chmod 777 ./images/plantuml

vim LocalSettings.php wfLoadExtension( 'PlantUML' ); $wgPlantUmlPath = "$wgScriptPath/images/plantuml"; $wgPlantUmlDirectory = dirname( FILE ) . '/images/plantuml';

vim ./extensions/PlantUML/PlantUML.body.php

function getUploadDirectory() {
    global $wgPlantUmlDirectory;
    return $wgPlantUmlDirectory;
}   

function getUploadPath() {
    global $wgPlantUmlPath;
    return $wgPlantUmlPath;
}

Ymir1711 avatar Dec 14 '18 04:12 Ymir1711

Modified the plugin for creating subdirectories /images/plantuml/aa/bb/cc/dd/ *.png https://gitlab.com/d.a.zaykov/plantuml

dazaykov avatar May 09 '21 09:05 dazaykov

@dazaykov Would you like to take over this outdated project? I could invite you and make you owner ..

WolfgangFahl avatar May 09 '21 14:05 WolfgangFahl

Yes, I'm ready to pick it up for a while. I need him now.

dazaykov avatar May 09 '21 15:05 dazaykov