When I upload an image through the admin interface, the image is only saved at full-size. The other sizes are configured to their default values in Settings > Media....
  • May 24, 2022
  • 0 Comments
I’ve followed the accepted answer in this question to generate my thumbnails in a custom way. I extended the image editor class as: class WP_Image_Editor_Custom extends WP_Image_Editor_GD { public...
  • May 23, 2022
  • 0 Comments
I’m using do_shortcode() to display a custom WordPress audio playlist. By default the playlist will load cover art for each audio file (the attachment’s featured image) and change according...
  • May 21, 2022
  • 0 Comments
I am using hard-crop on featured images like this : add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size ( 635, 200, true ); I have no other plugin installed, not even Jetpack. No...
  • May 21, 2022
  • 0 Comments
I am storing my uploads in a separate folder and using separate table to save the location in database. I have gone through WP_Image_Editor , wp_image_editor_gd and wp_image_editor_imagick ....
  • May 18, 2022
  • 0 Comments
I.e. an uploaded image image.jpg is stored in wp-content/uploads/2016. WordPress will generate thumbnails named image-150x150.jpg, image-300x300.jpg, and image-1024x1024.jpg in the same directory. Is it possible to store the additional...
  • May 18, 2022
  • 0 Comments