最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

uploads - Alter the image, before save, of a particular image size

programmeradmin1浏览0评论

Is there a way/filter to edit the image (as in the image file itself) before it is saved, on a per image size basis?

Particularly, I want to have a version of an image that I'll apply a blur effect to. I'll call my custom image size, say, `500x500_blurred' with:

add_image_size('500x500_blurred', 500, 500, true);

Now, on adding a new image, I'd like to alter the 500x500_blurred version before it is saved, applying some manipulations to just that image, so that the original image and all other size versions do not get the same manipulations.

发布评论

评论列表(0)

  1. 暂无评论