Community Forums › Forums › Archived Forums › Design Tips and Tricks › Author Pro – Modify Book Image Dimensions
Tagged: Author Pro, featured image
- This topic has 10 replies, 3 voices, and was last updated 4 years, 8 months ago by AnitaC.
-
AuthorPosts
-
March 5, 2020 at 5:31 am #497154chrisjeubParticipant
The Author Pro book dimensions are fixed to very thin books. My books are more like textbooks, the standard size being 8.5x11. I tried to upload these thinking the site would automatically keep the dimensions, but instead the site cuts off margins and displays awkward covers.
Author Pro directions say to crop all books accordingly: "The recommended book cover image upload size is 720 x 1140 pixels which will be displayed at 360 x 570 pixels."
I would like to adjust this size to 850 x 1100, then let the crop sizes adjust automatically. Can you help?
March 5, 2020 at 7:39 am #497158Brad DaltonParticipantGood question. On what page do you want to change the book size? The front page? The single book page?
March 5, 2020 at 7:51 am #497159chrisjeubParticipantBoth Front Page 2 and the Library Page automatically trim the margins, rather than resize the image. Either adjusting the trim automation or coding a special resizing would solve the problem, I suppose, but I don't know how to do that.
March 5, 2020 at 8:02 am #497160chrisjeubParticipantI have been testing this to see how the theme could resize, and I find the theme automatically cropping the photo instead to a hard-crop 360-570. Like so:
https://chrisjeub.com/wp-content/uploads/2016-Blue-Book-Cover-3-360x570.jpg
Compared to what it should be:
https://chrisjeub.com/wp-content/uploads/2016-Blue-Book-Cover-3.jpg
March 5, 2020 at 9:44 am #497164Brad DaltonParticipantYou can change the image size in your child themes functions.php file using add_image_size and regenerate thumbnails then you'll need to use CSS to position both elements as they hard coded in column classes.
March 5, 2020 at 10:01 am #497165chrisjeubParticipantSo, 850x1100 would be the image size. Do you know the exact code that I should type into my functions.php file?
March 5, 2020 at 5:10 pm #497171AnitaCKeymasterThe book size setting is actually in the Author Pro Plugin for the books/library. You can add this to the functions file.
// Add new image sizes. add_image_size( 'author-book-size', 850, 1100, TRUE );
Then install the Regenerate Thumbnails plugin and run it.
Need help with customization or troubleshooting? Reach out to me.
March 5, 2020 at 6:51 pm #497172chrisjeubParticipantThanks Anita, but that didn't seem to work. It added the ability to embed a special image size within a text editor, but the Featured Image is still being cropped in both the front page and within the library page, even with an image exactly the size 850x1100. Frustrating. Any other ideas?
March 5, 2020 at 7:51 pm #497173AnitaCKeymasterSo take a look at this about image sizes - https://developer.wordpress.org/reference/functions/add_image_size/.
Or you can jump directly down to this section - https://developer.wordpress.org/reference/functions/add_image_size/#crop-mode.
See if any of the crop modes there will help.
Need help with customization or troubleshooting? Reach out to me.
March 5, 2020 at 9:10 pm #497174chrisjeubParticipantThis helped a little in understanding that I need to hard crop my image photos to 360x466 to get them to appear properly, but this still doesn't solve the force cropping. I even touched up the code you sent by removing the "true" statement to see if that worked. Still, the featured images are being cropped rather than resized.
I can't imaging why there isn't an easier solution to this?
March 5, 2020 at 9:38 pm #497175 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.