Closed (fixed)
Project:
Image filter
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2003 at 13:16 UTC
Updated:
20 May 2005 at 18:10 UTC
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
Comment #1
bruno commentedI 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:
The small, medium and large size constraints would be configurable in image module admin.
Comment #2
Boris Mann _Old Blogger.com Account_ commentedOK, 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
Comment #3
Eric Scouten commentedMoving to image_filter.module.
Comment #4
(not verified) commentedit seems not work in the lastest CVS version.
Comment #5
bruno commentedReverting 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.
Comment #6
David Hull commentedIn the current CVS version of image_filter, you can use
[image:nodeid size="original"](orthumbnailorpreviewor one of the site-specified sizes), as well as usewidth=norheight=nto specify the image size.Comment #7
David Hull commented