New option in g2image over drupal 5.x + gallery module 5.x.1.0.
thidalgo
Joined: 2007-08-26
Posts: 20 |
Posted: Sun, 2007-08-26 20:45 |
From the version 5.x.1.0 of gallery module for Drupal 5.x exists a very powerful characteristic to add photos in content of Drupal using Gallery2. Gallery2 Filter: exactsize: The length of the longest side for the thumbnail. The other side is determined automatically to keep the same aspect ratio. This option always ensures that the image is scaled from a larger image and so image quality is maintained. This only works for Gallery2.2 and above. For example: It would be possible to add the option of exactsize in g2image? Choose the results of clicking on an image The Exact Size value is one box for input the length of the longest side for the thumbnail. For example: 640, 448, 314, 160, etc... Of this form, photos of different sizes could be added using g2image in Drupal. Many thanks for you time and help. Tomas Hidalgo |
|
Posts: 492
Tomas,
Thank you for the information on the Drupal G2 Filter. I already had variable sized images on my roadmap for version 3.1, but I've added a reminder to support variable sizes in both the Drupal G2 Filter tag and in the WPG2 tag.
I need to do the same work on the G2Image back end that Kieran has already done on the Drupal Gallery Module to find resizes for G2Image HTML insertion. I don't want to add support for variable sizes in G2Image until I can do it for all of the insertion methods, so that it will not be confusing whether the variable size applies or not.
I'm working on 3.0 right now. The beta should be out in a few days. I totally changed the translation scheme for 3.0, so I'll need a couple weeks after the beta is posted to get all of the nice people who translated 2.0 to translate the additional phrases for 3.0. So, 3.0 should be out in about 3 weeks. 3.1 would be a month or two after that, depending on how hectic life gets this fall.
Cheers,
Kirk
Posts: 492
I've thought through this some more, and I'll be able to easily add the Drupal G2 Filter exactsize attribute in G2Image 3.0 without making it confusing that the variable size does not apply to the other tags. So, look for it when I release the 3.0 beta in a few days.
Thanks,
Kirk
Posts: 20
Kirk,
Thank you very much to consider these considerations for the new version of g2image.
All the information on module gallery 5.x.1.0 o later is:
Gallery2 Filter:
You can link to items in your embedded Gallery2 using a special code. This code will be replaced by a thumbnail image that is linked to the actual item in your Gallery.
Syntax:
[G2:item_id n=number type=type size=number exactsize=number class=name frame=name album_frame=name item_frame=name]
item_id (required): This is the item ID from Gallery2. If you look at the URL of the item, this is the last number. Note that if the item_id is a single photo, n must be 1.
n (suggested): This is the number of photos you want the block to show. It will override whatever is set in the defaults (initially 1). Note: this will change past instances where you did not set n -- the reason for its suggested use.
type: The default type of gallery block. Any of the following may be used: randomImage, recentImage, viewedImage, randomAlbum, recentAlbum, viewedAlbum, dailyImage, weeklyImage, monthlyImage, dailyAlbum, weeklyAlbum, monthlyAlbum, specificItem. Note that for n=1, selectedItem is automatically chosen regardless of this parameter.
class: The block that Gallery2 returns is wrapped in a DIV so additional styling can be done. The classes for this DIV are located in g2_filter.css. Included with the module are "left", "right", and "nowrap". These position the image block to the left or right or on a line all its own with the text not wrapping. You can also add your own class(es) to the CSS file and they will automatically be available.
size: The length of the longest side for the thumbnail. The other side is determined automatically to keep the same aspect ratio. This option (for Gallery2.2 and above) will use the gallery image that is closest in size, and so may end up using a smaller image and expanding it (lower quality). If so, use "exactsize". For Gallery2.1, if you want your size to be bigger than the thumbnail size for that image as defined in your Gallery2, you must select "Full Size" in the gallery settings page (but note that the full image will be returned and then resized by the browser, so it may take a while to download).
exactsize: The length of the longest side for the thumbnail. The other side is determined automatically to keep the same aspect ratio. This option always ensures that the image is scaled from a larger image and so image quality is maintained. This only works for Gallery2.2 and above.
frame/album_frame/item_frame: You can use just "frame" to assign a frame to the thumbnail regardless of whether it's for an album or a single item. Using aframe will only affect albums and iframe will only affect single items. Frames included with the default Gallery 2 install are: bamboo, book, brand , dots, flicking, gold, gold2, polaroid, polaroids, shadow, shells, slide, solid, notebook, wood.
Thank you for your time; it is greatly appreciated.
Tomas Hidalgo
Posts: 492
Tomas,
Check out the v3.0 beta. I got the exactsize option into the G2 Filter tag.
Kirk