add a checkbox to the image_field I want to add a checkbox-field to each image I upload (like the title- or alt-fields) , to set the option whether the theme should render the image as a gallery or not. the value should be saved in the db. int(1)

I don't want to install heavy modules for this...

edit: but if there is no other option, I take the module :D

is there maybe a strategy I should use to solve the problem? writing a widget or something? hooking into the images_schema ?
I just did this with the imagefield extended module and a small custom module. After enabling the imagefield_extended module, I add this code to my custom module.

/**
* Implementation of hook_imagefield_extended_widget().
*/

function MYMODULE_imagefield_extended_widget($element, $extra_values) {
  // If you need the field or widget to conditionally add a FAPI field, use these.
  $field = content_fields($element['#field_name'], $element['#type_name']);
  $widget = $field['widget'];
if($element['#type_name'] == 'occupancy_status' &amp;&amp; $element['#field_name'] == 'field_task_files'){
  return array(
    //This will Replace the Textfield with dropdown select for the description
    'description' =&gt; array(
      '#type' =&gt; 'select',
      '#title' =&gt; t('Document Description'),
      '#options' =&gt; array(
         'Occupancy Flyer' =&gt; t('Occupancy Flyer'),
         'Personal Property Release' =&gt; t('Personal Property Release'),
         'Introduction Letter' =&gt; t('Introduction Letter'),
         'Notice of Rights' =&gt; t('Notice of Rights'),
         'Miscellenous' =&gt; t('Miscellenous'),
      ),
      // this makes b the default value when the value is not set.
      '#default_value' =&gt; isset($extra_values['description']) ? $extra_values['description'] : 'Miscellenous',
    ),
  );
  }



   if( $element['#type_name'] == 'property_gallery' &amp;&amp; $element['#field_name'] == 'field_gallery_images' &amp;&amp; arg(1)!=='add'){


  return array(
    //These are stored in the 'data' column of the cck imagefield's db table
    'revised' =&gt; array(
      '#type' =&gt; 'checkbox',
      '#title' =&gt; t('Revise This Description'),
       '#default_value' =&gt; isset($extra_values['revised']) ? $extra_values['revised'] : 0,
     '#attributes'=&gt;array('class' =&gt; 'revise-check')
       ),
    'revisedby' =&gt; array(
      '#type' =&gt; 'textfield',
      '#maxlength' =&gt; 64,
      '#title' =&gt; t('Revsied By'),
      '#description' =&gt; t('Replace your name with the current name if you are making a new revision.'),
     '#default_value' =&gt; ($extra_values['revised']==0) ?  NULL : $extra_values['revisedby'] ,
       ),
       'revisedon' =&gt; array(
      '#type' =&gt; 'date',
      '#title' =&gt; t('Date Revised'),
     '#default_value' =&gt; ($extra_values['revised']==0) ?  NULL : $extra_values['revisedon'] ,

       ),

  );
  }
} /*End function */


You have the ability to add or modify the filefield or the imagefield field widgets. The only problem that I'm stuck at is making this work for fupload_imagefield.