attaching images > re-sizing

Ryan Kent

Well-known member
Is it possible to show an attached image in various sizes? I don't want it to show full-size, nor as a thumbnail. Basically I want to say something like attach=40% or attach=100height,100width
 
You can create a custom BB Code for embedded images.
Just specify the height and width as variables.

I'm not sure you will be able to easily adjust the core attach functionality though without an add-on.
 
lol
i thought that's already included, because it's possible to change the size of the thumbnails (didn't know that this have no effect)
 
Changing the size of the thumbnails works fine.

As I understand it, the OP wants to be able to specify different embed sizes for individual attachments.
 
The attached image thumbnail size is set in the ACP.

That's what I mean by changing the size of the thumbnails, although it doesn't change the size of existing thumbnails.
 
Ah, that's just a quirk of the editor.
The same happens when you embed an image from a URL.
Of course the original file isn't affected at all so once the post is submitted, the actual size is displayed.
 
If anybody is interessted, this can be deactivated.
Just add
PHP:
object_resizing : false,
to the edit_js_setup template
after

Code:
<xen:hook name="editor_tinymce_init" params="{xen:array 'editorId={$editorId}'}">

I'll make a add-on tomorrow for this, because it's really unnecessary if it's no real feature.
 
Top Bottom