feat: fixes
This commit is contained in:
@@ -13,7 +13,7 @@ const { sendNotification } = require('./notifications')
|
||||
const COVER_TEMPLATE = 'MUSICLAND_PLAYBACKER'
|
||||
const COVER_OPTION_ID = 'musicland-playbacker'
|
||||
const COVER_SIZE = 1024
|
||||
const PROFILE_SIZE = 228
|
||||
const PROFILE_SIZE = 320
|
||||
const TEMPLATE_PATH = path.join(__dirname, '../assets/musiclandPlaybackCover.png')
|
||||
const FONT_FAMILY = 'Poppins, Montserrat, Arial, sans-serif'
|
||||
|
||||
@@ -174,7 +174,11 @@ async function prepareMusiclandCover(project) {
|
||||
const overlays = [{ input: buildTextOverlay(artistName), left: 0, top: 0 }]
|
||||
|
||||
if (profileOverlay) {
|
||||
overlays.unshift({ input: profileOverlay, left: 398, top: 454 })
|
||||
overlays.unshift({
|
||||
input: profileOverlay,
|
||||
left: (COVER_SIZE - PROFILE_SIZE) / 2,
|
||||
top: 568 - PROFILE_SIZE / 2,
|
||||
})
|
||||
}
|
||||
|
||||
const coverBuffer = await sharp(TEMPLATE_PATH)
|
||||
|
||||
Reference in New Issue
Block a user