Rotate image in panel

Hi,

i try to rotate images in the panel via a file.update:after hook.
I have the degree as a select field in the file blueprint.

is there an easy way to do it without imagemagik? maybe with imagerotate()?

Thanks

What’s your use case, why don’t you rotate image via CSS?

hey,
because i need the real rotated image for my api.

Kirby image manipulation image (aka thumbs) doesn’t offer image rotation, so yes, you would have to either use imagerotate() or ImageMagick.