getgrav / getgrav/grav-plugin-admin

Image renaming functionality on upload.

Open
#2,165 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Hi,

I found that Grav has image resizing functionality built in and that it also generates smaller sizes from the original image. What I'd like to do is to rename automatically the images from `image.jpeg` to `image@5x.jpeg`, choosing the suffix from the Page Media Image Resizer in the Admin. That way it would not be necessary to install a specific plugin for managing images, because that suffix would tell Grav to generate all the smaller versions already.

I tried to find where in the code is the plugin doing the resizing on upload (because that seems to be the right moment to rename the file), but I couldn't find it. I appreciate any help in developing this "add-on" to this great plugin.

![Admin images](https://user-images.githubusercontent.com/67986273/126020791-f7e1d7c4-3955-40b5-8fb6-b08fc8787e05.jpg)

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.