It would be nice if users can enter their own dimensions instead of choosing from a drop down menus.
I tried adding the dimensions I want on the array on line 361 but it does not work if I choose the dimension I hard coded.
from this:
$form['picasa_settings']['PICASA_IMAGE_SIZE'] = array(
'#type' => 'select',
'#title' => t('Image Max Size'),
'#default_value' => variable_get('PICASA_IMAGE_SIZE', '800'),
'#description' => t('The maximum width of the final images. Google '.
'restricts this to 800px.'),
'#options' => array(
'72' => '72',
'144' => '144',
'160' => '160',
'200' => '200',
'288' => '288',
'320' => '320',
'400' => '400',
'800' => '800'
)
to this:
$form['picasa_settings']['PICASA_IMAGE_SIZE'] = array(
'#type' => 'select',
'#title' => t('Image Max Size'),
'#default_value' => variable_get('PICASA_IMAGE_SIZE', '800'),
'#description' => t('The maximum width of the final images. Google '.
'restricts this to 800px.'),
'#options' => array(
'72' => '72',
'144' => '144',
'160' => '160',
'200' => '200',
'288' => '288',
'320' => '320',
'400' => '400',
'539' => '539',
'800' => '800'
)
Then I went to the admin page and choose 539 from the menu, and saved the setting. It does not produce and image.
Comments
Comment #1
cyberswat commentedUnfortunately the Google API has a specific set of dimensions it allows for an image. I looped through each size up to approximately 4000px and recorded the ones that returned an image in those select boxes. I think it would be great to allow each administrator to specify image sizes but unfortunately this is not provided by Google.
Comment #2
felixflores commentedOh that's unfortunate. In any case thank you for the great module!