Saltar navegación

[Resuelto] Generation of image sizes

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: I see lots of images created at different sizes when I upload an image to a custom field. I would like to limit the number of image sizes.

Solution: The theme and other plugins can register their own custom image sizes, which are outside the control of Toolset. Types field shortcodes can be used to display images at different sizes, and those resized images will be stored on the server.

This support ticket is created hace 5 años, 11 meses. 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)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Pat hace 5 años, 11 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1194929

Pat

Hello,
I have created a postype with an image custom filed. When I upload an image for this field (either by the frontend thanks to a Cred or irectly from the admin page), lots of image sizes are created.

Here is the list of files that are created (in addition to the original's one) :

- 100x100
- 150x100
- 260x330
- 300x200
- 768x512
- 1024x683
- wpcf_1024x800

In addition, the one with wpcf is cropped and I need to keep the original format.

In fact, my needs are :
- 150x150
- 300x200
- 1024x683

Can you explain how I can set the parameter of the site including Toolset in order to generate only the needed sizes?

Regards
Pat

#1195102

The theme and other plugins can register their own custom image sizes, which are outside the control of Toolset. As a test, please deactivate all Toolset plugins and upload a new image to the Media Library. Then check your uploads folder and see how many images are created automatically, and compare that to the results with Toolset active.

The wpcf_ prefix is usually added to custom fields that are displayed at a custom size in a Types field shortcode. The options available for cropping, stretching, or padding those images are available here:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image

Those images are created on-the-fly when they are displayed on the site, they are not automatically generated when you upload an image to the media library. So if you delete the images from the server and delete the shortcodes used to display those images, they should not reappear.

#1196466

Pat

Hi Christian,

Thanks for the info.
I will follow your advice and try to deactivate some plugins in order to see which ones are linked to the different images sizes
Regards
Pat