Rotating Images creates new files but no new data in the table
-
If I upload an image (say its called img_1903.jpg) I get a set of files for this image automatically created by wordpress and I also get a corresponding row in the wp_posts table.
If when I’m inserting that image into a post I rotate it, using the built in image rotation functionality, then it creates a new rotated image with a name like IMG_1903-e1475142922987.jpg and a set of different sized images. But it doesn’t create a new row in the wp_posts table.
This means that if you use get_attached_file to get the file names of which images are attached to a post then it returns the original image file name and not the rotated image file name.
The urls inserted into the post are to the rotated image and not to the original.
- The topic ‘Rotating Images creates new files but no new data in the table’ is closed to new replies.