Navigation überspringen

[Gelöst] Record only the thumbnail image

This support ticket is created vor 5 Jahren, 3 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Pat vor 5 Jahren, 3 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1370895

Pat

Hello,

I'm using Cred to define an avatar for users. As this is something that will be used only in small resolution, I would like to know if it is possible to record only the thumbnail version of the image (in order to not populate the hosting with large sized files.

Of course, this should be only for this specific custom field. All other image custom fields should be recorded with all the file dimensions.

Regards
Pat

#1371121

Hi, Im not aware of any one filter that will help suppress these other image sizes, because they can be added by other themes and plugins as well. I supposed you could use the cred_save_data hook to trigger some PHP that deletes attachments from the post programmatically, after it's created, but that could be tricky. We have information about that hook available here: https://toolset.com/documentation/programmer-reference/cred-api/

#1374455

Pat

Hi Christian,

Understood.
I will check also on plugins that allow to define the size of the images that are uploaded on the site.
Thanks for your return
Regards
Pat