The image.module and the ability to post images using the image filter is a great feature. However, to fully enable the use of just Drupal, it would be great if the filter could be updated to also allow posting the full-size version of an image.

I would suggest adding an optional key at the end that is a percentage value:
[image:34,left,5,5,0,100]

Putting in a value of 100 would display the full-size image, while lower (or higher) percentages would scale the image appropriately. Leaving out the key would display the thumbnail as it does today.

Comments

bruno’s picture

I think adding an option to select how an image will be rendered in a node is a good idea.

However, using a scale factor that way implies resizing on the client-side with a transfer of the full image. This will have a large impact on the server load and page rendering time: imagine a story with ten 1024x768 images displayed at 20% of their size.

I would prefer pre-scaling images, in other words, creating several image sizes (variations) at upload time and use the filter to select the variation.

For example, I could require 128x96 thumbnails for the gallery (small), 256x192 for the images in stories (medium) and 640x480 for "full size" display (large). Then the filter could have this syntax:

[image:24,left,10,10,0 ]       = display the thumbnail of image 24 (what we have today)
[image:24,left,10,10,0,medium] = display the medium size variation of image 24
[image:24,left,10,10,0,large]  = display image 24 full size

The small, medium and large size constraints would be configurable in image module admin.

Boris Mann _Old Blogger.com Account_’s picture

OK, your modifications sound good. I was trying to think of an "easy" way to implement this quickly -- I agree that scaling is not necessarily desirable. This is how Gallery works -- you define the thumbnail size and an "intermediate" size, which in turn links to the original, full-size image. The thumbnails are generated on upload.

However, I would still want the keyword "full" to be available -- show the image at its original size. My idea for this is so that everything from very small (icons) to very large images can be used "directly". This way we are also not constrained to particular dimensions.

Hmm...now that I think about it, I would also want the ability to *not* link to the image node -- just to display it. I'll leave that for another feature request

Eric Scouten’s picture

Project: Image » Image filter
Component: modules » User interface

Moving to image_filter.module.

Anonymous’s picture

Category: feature » support

it seems not work in the lastest CVS version.

bruno’s picture

Category: support » feature

Reverting to feature request. The problem mentioned in last post is a duplicate of #10815.

While the syntax is different, the current version of filter module allow selection of image size. It is not using keywords like 'small', 'medium' but size specification using 'width=' and 'height='.

Changing status to 'postponed' because future implementation will allow this kind of keywords.

David Hull’s picture

In the current CVS version of image_filter, you can use [image:nodeid size="original"] (or thumbnail or preview or one of the site-specified sizes), as well as use width=n or height=n to specify the image size.

David Hull’s picture