Hi, sorry to resurrect an old thread but I recently started using Dokuwiki and encountered what sounds like the same issue and wanted to share the "fix" that I found.
Any time I try to resize an image it disappears.
I discovered that I could resolve the issue if I edit lib/exe/fetch.php and comment out the width line in this block of code:
// BEGIN main
$mimetypes = getMimeTypes();
//get input
$MEDIA = stripctl(getID('media', false)); // no cleaning except control chars - maybe external
$CACHE = calc_cache($INPUT->str('cache'));
//$WIDTH = $INPUT->int('w');
$HEIGHT = $INPUT->int('h');
Alternatively setting width to 0 has the same effect. I guess it ends up changing which function is executed in this if/else:
//handle image resizing/cropping
if((substr($MIME, 0, 5) == 'image') && ($WIDTH || $HEIGHT)) {
if($HEIGHT && $WIDTH) {
$data['file'] = $FILE = media_crop_image($data['file'], $EXT, $WIDTH, $HEIGHT);
} else {
$data['file'] = $FILE = media_resize_image($data['file'], $EXT, $WIDTH, $HEIGHT);
}
}
I don't really understand anything beyond that or understand what implications this has (does it break something else?).. but resized images now show up fine (and they are properly resized).
I hope this might help someone else if they encounter this issue and find this thread.