WordPress.org

Ready to get started?Download WordPress

Forums

Which core code adds the dimensions to an image upload? (2 posts)

  1. aPhRo_
    Member
    Posted 1 year ago #

    Hey,

    I'm trying to work out how this works so I can hook into the media uploads and push them into a different storage mechanism, this detail is arbitrary to this problem however:

    I need to know where WordPress adds the image dimension suffix to an image. I've spent about 3 hours trawling through lines and lines of code I just can't see where it is at the moment :(

    When I'm currently hooked into 'wp_handle_upload', 'wp_save_image_file', 'wp_save_image_editor_file', and 'wp_create_thumbnail' and I can't see anything happening in any of these at the moment. :(

    Any help is greatly appreciated,

    Cheers

    Sam

  2. aPhRo_
    Member
    Posted 1 year ago #

    Found it!

    Inside the function image_resize in wp-includes/media.php

Topic Closed

This topic has been closed to new replies.

About this Topic