Custom file name for resized images

Hello,

I wondered if it is possible to rename images that have been resized using Image Processing.

Original filename:
/img/test.png

I dislike the file names hugo is creating:
/img/test_hu2b8c2486a9783eb24b1dd1e06288b5be_0_668x0_resize_q75_box_3.png

Instead I would like a file name like this:
/img/test-668w.png

Is it possible to achieve this in “vanilla” hugo?

Perhaps resources.Copy can help

Thanks!

resources.Copy solved my issue.

1 Like