How to programmatically create an image style? I need to create image style programmatically in Drupal 7. I found this issue: https://www.drupal.org/project/drupal/issues/2735969 and much more other issues, but all are for Drupal 8. I can't find anything to Drupal 7. Is that impossible in Drupal 7?
You're looking for the image_style_save and image_effect_save functions.
An example from the comments on the image_style_save docs page:
$style = image_style_save(array('name' =&gt; 'avatar'));
$effect = array(
  'name' =&gt; 'image_scale',
  'data' =&gt; array(
    'width' =&gt; 64,
    'height' =&gt; 64,
    'upscale' =&gt; TRUE,
  ), 
  'isid' =&gt; $style['isid'],
);
image_effect_save($effect);