• wp_insert_attachment
    wp_generate_attachment_metadata
    wp_update_attachment_metadata

    I am uploading images to a WordPress site. I need to do the work they do without WordPress. When WordPress making different size of images, it does for a fixed sizes or different for every image? How can i do that in pure php? And them writing to postmeta table?

    [Bump deleted – please don’t do that here – see the forum guidelines – these are VOLUNTEER forums so help may not be as fast as you like]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    How images are handled probably varies by theme. I use a child theme of twentyeleven which resizes images to be the same width as the registered sizes. It would be difficult to resize any of the popular image formats with pure PHP. If you cannot use WordPress for this, consider at least a PHP extension such as IMagick to handle the image manipulation.

    Adding data to WordPress tables can be done with the various mysql_*() functions.

Viewing 1 replies (of 1 total)

The topic ‘Image upload and creating thumbnails functions equivalent’ is closed to new replies.