• Resuelto pablocianes

    (@pablocianes)


    Hola,
    Tengo un theme creado de cero donde a priori no defino tamaño de imágenes, y por otra parte tampoco le dejo a WordPress que lo haga al tener en ajustes de medios todos los tamaños en cero.
    La duda que tengo es que al subir imágenes se crea automáticamente una de 768×394 ¿hay algo por defecto que se me escapa?
    He rastreado en el código de themes y plugins y no encuentro el responsable de este tamaño de imagen y no sé que se me está pasando.
    ¿alguna idea?
    gracias!

Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)
  • Iniciador del debate pablocianes

    (@pablocianes)

    Al parecer lo hace WordPress automáticamente desde 4.4 😉

    He encontrado respuesta aquí:
    https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/

    A new default image size

    A new default intermediate size, medium_large, has been added to better take advantage of responsive image support. The new size is 768px wide by default, with no height limit, and can be used like any other size available in WordPress. As it is a standard size, it will only be generated when new images are uploaded or sizes are regenerated with third party plugins.

    The medium_large size is not included in the UI when selecting an image to insert in posts, nor are we including UI to change the image size from the media settings page. However, developers can modify the width of this new size using the update_option() function, similar to any other default image size.

    Iniciador del debate pablocianes

    (@pablocianes)

    Y para el que le interese borrarlo…

    //delete medium_large thumbnail size
    update_option('medium_large_size_w', '0');
    update_option('medium_large_size_h', '0');
Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)
  • El debate ‘Imagenes creadas auto en WordPress’ está cerrado a nuevas respuestas.