how to propose when editing content 2 possible media style for an image field? My content type has an image field.
I'd like to propose to the editor two possible displays for that uploaded image, either 100% width or 50% width
How can i achieve that?

EDIT:
i found out this module :
https://www.drupal.org/project/field_image_style
Is this module stable enough?

How can I make this behavior compatible with the field formatter from colorbox module?
You could add a separate select dropdown textfield with two options, which are the image styles you'd like, and if they select the alternate one, update the field in hook_entity_view.

 function mymodule_entity_view(array &amp;$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
   if ($entity-&gt;getEntityType()-&gt;id() == 'node' &amp;&amp; $entity-&gt;bundle() == 'article' &amp;&amp; !$entity-&gt;field_image_style-&gt;isEmpty()) {
     $style = $entity-&gt;field_image_style-&gt;getValue()[0]['value'];
     $build['field_image'][0]['#image_style'] = $style;
   }
 }