Active
Project:
Uberimage
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2010 at 14:55 UTC
Updated:
19 Mar 2010 at 13:39 UTC
Hi,
Why are you using this?
Right now, it purpose is confusing me a little, because I have no influence, on showing this or not.
But maybe you have a good explanation ;)
//If the image selection setting is on, add another preset: original format (but downsized if necessary)
if($field['widget']['preset_selection'] == 1)
{
$preset_name = 'aef_image_original_format';
$preset = imagecache_preset_by_name($preset_name);
$element['presets_area'][$preset_name] = array(
'#prefix' => '<div class="aef-image-preset">',
'#suffix' => '</div>',
);
Comments
Comment #1
ndeschildre commentedHey,
Well, there is an option in uberimage that let you select the preset you want to use in the node edit page. So the journalist can choose which format it wants to display.
And then I was asked to add the possisibility to output the image without modification, in its original format.
Since it had to be done very quickly, I created a new imagecache preset that did nothing.
Otherwise it could have cost me much more time.
That's all :)
Cheers,
nicolas
Comment #2
stefan81 commentedThank you for your explanation :)
Since we have now the possibility to assign imagecache presets to uberimage (thanks again for your efforts!) we could remove this hard coded preset and move it to the admin, to make it optional.
What do you think?
Right now, I out-commented this part directly in the module, as I don't need it ;)
My customer and I love your module!!
Comment #3
ndeschildre commentedGlad to hear it :)