mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
When deploying an ebook, make adjustments for quirks in Ubuntu's SVG renderer
This commit is contained in:
parent
98350f84d2
commit
80c95ec971
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ do
|
|||
# Build the cover image thumbnail
|
||||
git show HEAD:images/cover.jpg > "${imgWorkDir}/${urlSafeIdentifier}.jpg"
|
||||
git show HEAD:images/cover.svg > "${imgWorkDir}/${urlSafeIdentifier}.svg"
|
||||
# The Ubuntu SVG renderer can't handle quotes around font names, so remove them before we process the cover.
|
||||
sed -i "s/\"League Spartan\"/League Spartan/g" "${imgWorkDir}/${urlSafeIdentifier}.svg"
|
||||
sed -i "s/cover\.jpg/${urlSafeIdentifier}\.jpg/g" "${imgWorkDir}/${urlSafeIdentifier}.svg"
|
||||
cp "${imgWorkDir}/${urlSafeIdentifier}.svg" "${imgWorkDir}/${urlSafeIdentifier}@2x.svg"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue