r/ereader•
JPBartley

Make a Mac shortcut to convert ePub cover art to fit your reader screen (looks better on lock screen)

Discussion

**YOU NEED TO HAVE CALIBRE INSTALLED. IT USES CALIBRE TOOLS IN THE BG**

  1. Open the shortcuts app and create a new one.
  2. Check the setting for "Quick Action" and select "Finder"
  3. Set "receive" to "files" (hit the select all button, then deselect all, then select "files")
  4. Add a "Run Shell Script" action
  5. Copy the code from below.
  6. Change the width/height to your reader (mine is set for 12th gen paper white)
  7. Set the "Pass Input" to "as arguments"
  8. **I made one for cropping the image, one for stretching it. Sometimes stretching looks bad, sometimes cropping cuts off some of the title. (see screenshot)
  9. Right click an ePub in the finder and look under "Quick Actions"

https://preview.redd.it/avs7xpfvi25h1.png?width=2056&format=png&auto=webp&s=70d0e07f4871dd172bc95c7460c7d59cd745a99e

https://preview.redd.it/jphbwpfvi25h1.png?width=2034&format=png&auto=webp&s=c0196ee9f5b86b23e604e7ffcc118bce5488d624

https://preview.redd.it/eylempfvi25h1.png?width=980&format=png&auto=webp&s=e901cf0fa3ae45866f1ae4211e53200929885e21

https://preview.redd.it/duu7bpfvi25h1.png?width=1154&format=png&auto=webp&s=96ad3ecd08d1cdcf077afeff711aa36a2e7003e2

CODE FOR RESIZE:

# Get the ePub file from the shortcut input

epub="$1"
temp_img="/tmp/epub_cover.jpg"

# 1. Extract the current cover image

/Applications/calibre.app/Contents/MacOS/ebook-meta "$epub" --get-cover "$temp_img"

# 2. Stretch the image

sips --resampleHeightWidth 1680 1264 "$temp_img"

# 3. Apply the modified image back as the cover

/Applications/calibre.app/Contents/MacOS/ebook-meta "$epub" --cover "$temp_img"

# 4. Remove the temporary image file

rm "$temp_img"

CODE FOR CROP:

# Get the ePub file from the shortcut input

epub="$1"
temp_img="/tmp/epub_cover.jpg"

# 1. Extract the current cover image

/Applications/calibre.app/Contents/MacOS/ebook-meta "$epub" --get-cover "$temp_img"

# 2. Scale the image

sips --resampleWidth 1264 "$temp_img"

# 3. Crop the image

sips --cropToHeightWidth 1680 1264 "$temp_img"

# 4. Apply the modified image back as the cover

/Applications/calibre.app/Contents/MacOS/ebook-meta "$epub" --cover "$temp_img"

# 5. Remove the temporary image file

rm "$temp_img

Posted Jun 3, 2026, 1:18 PM UTC

20
Loading comments…