Kodi Community Forum
[img] resize issue - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Website and Forum Issues or Suggestions (https://forum.kodi.tv/forumdisplay.php?fid=35)
+--- Thread: [img] resize issue (/showthread.php?tid=375095)



[img] resize issue - shmn - 2023-11-20

I tried to resize an image using "img=200x400" (in square brackets) but it wouldn't take.  I followed the instructions from here: https://forum.kodi.tv/misc.php?action=help&hid=7

The post is here: https://forum.kodi.tv/showthread.php?tid=369711&pid=3172650#pid3172650

I inserted the image using the "picture" icon and then switched to "Source" mode to edit the code and enter the resizing portion (=200x400, also tried =540x1170) but when I came out of "Source" mode, the change wouldn't take.

Am I doing something wrong?


RE: [img] resize issue - Karellen - 2023-11-20

(2023-11-20, 17:41)shmn Wrote: I tried to resize an image using "img=200x400" (in square brackets) but it wouldn't take.
It seems to be working now. I've edited your post and added the [img=200x400] tag.

You can also add a spoiler tag around the image. [ SPOILER ]foo[ /SPOILER ]
(without the spaces in the element)


RE: [img] resize issue - shmn - 2023-11-20

Thanks.

Any idea why it wasn't working?


RE: [img] resize issue - Karellen - 2023-11-20

(2023-11-20, 19:53)shmn Wrote: Any idea why it wasn't working?
Nope, no idea. It worked first time I tried.


RE: [img] resize issue - shmn - 2023-11-20

Test.

Image


RE: [img] resize issue - shmn - 2023-11-20

I think there is a bug in the system.  If I manually type in the the img code with the address including the =200x100 it works. 

But if you insert an image and then try to add the =200x100 using the "Source" button, the changes are not saved.  Or if you manually enter the correct code and then go into "source" for any reason, when come out of source then the =200x100 disappears.  Or if you preview your message and then make any changes it also erases the extra code.


RE: [img] resize issue - Karellen - 2023-11-20

Which Source button are you referring to?


RE: [img] resize issue - shmn - 2023-11-20

Image


RE: [img] resize issue - Karellen - 2023-11-20

Oh, right. I see what you mean. I never noticed because I am always in html mode.

You start off in WYSIWYG mode.
You insert the image, then click Source to see the html code.
You add the sizing.
Switch back to WYSIWYG which then deletes the sizing

Maybe @yol knows how to fix, but I guess the interim solution is not to switch back to WYSIWYG.

Thanks for reporting.