Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

crop share the same presets as thumbs #519

Closed
yoanmalie opened this issue Mar 21, 2020 · 1 comment
Closed

crop share the same presets as thumbs #519

yoanmalie opened this issue Mar 21, 2020 · 1 comment

Comments

@yoanmalie
Copy link

Hi,

I would like that crop() share the same thumbs presets. It's work with srcset().

So we can do manually:

<img src="<?= $image->crop('article-big')->url() ?>" srcset="<?= $image->srcset('article-big') ?>" alt="">
return = [
  'thumbs' => [
    'presets' => [
      'article-big' => ['width' => 555, 'height' => 555, 'crop' => 'center'],
    ],
    'srcsets' => [
      'article-big' => [230, 365, 555, 730, 1200],
    ]
  ]
];
@yoanmalie
Copy link
Author

Moved to https://kirby.nolt.io/57

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants