I defined image dimensions in media (WP) and in functions.php addedd some 2 custom dimensions for image upload. When I upload images through WP admin everything is ok.
But now I have client which is uploadin 100 images via FTP to some folder on his site and I was wondering if there is a way to add this image to post programmatically?
Every image has name like post_ID.jpg (for exam. 450.jpg) and this is how I will know which image to add to which post but my question is how to add programmatically with wp functions (resize/crop (like it does when i add via WP admin)).
This images are in custom folder: /product_images/
Thank's for help