Loading...
 
Features / Usability

Features / Usability


"The file is not an image"

posts: 3

Q1. When I batch upload images to my Image Gallery using a ZIP full of jpgs, everything is OK and

Copy to clipboard
{img id="136", thumb=y, stylebox=border, button=y, desc=desc, max=200, rel=box}

shows correctly.

If I do the same with Directory Batch upload, the same IMG tag results in "The file is not an image". If I use ONLY
Copy to clipboard
{img id=136}
it shows the picture correctly, but if I as much as add the thumb=y parameter, it says it's not an image.

Q2. How and where do I define the default parameters for the IMG plugin? It would be great if the users only needed to enter
Copy to clipboard
{img id=123}
and the rest of the parameters would be added by default and all images on the site would be shown in a uniform manner.
posts: 175 Canada

I just noticed in tiki 6.x that if you specify a width you get the "The file is not an image" message. Remove the width and the image displays.

Pretty serious bug image-wise.

You can give it a class and get at it with css, but... it should take a width.


posts: 1633 Canada
Lanorac wrote:
Q2. How and where do I define the default parameters for the IMG plugin? It would be great if the users only needed to enter
Copy to clipboard
{img id=123}
and the rest of the parameters would be added by default and all images on the site would be shown in a uniform manner.


Please see:
Plugin Alias

You could also tweak the code at:
lib/wiki-plugins/wikiplugin_img.php

Best regards,

M ;-)