Skip to content

Commit

Permalink
No longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
4lejandrito committed Nov 3, 2022
1 parent a157065 commit 4cb1f29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/creepyface-site/src/backend/resize.ts
Expand Up @@ -4,14 +4,13 @@ import { getImagePath, getThumbnailPath } from './storage'
import path from 'path'
import { smallImageSize } from '../util/constants'

export const sizes = ['medium', 'small', 'square'] as const
export const sizes = ['medium', 'small'] as const
export type Size = typeof sizes[number]

const getDimensions = (size: Size) =>
({
small: { width: smallImageSize, height: smallImageSize },
medium: { width: Math.floor((400 * 35) / 45), height: 400 },
square: { width: 400, height: 400 },
}[size] || { width: 0, height: 0 })

export default async function resize(uuid: string, name: string, size?: Size) {
Expand Down

0 comments on commit 4cb1f29

Please sign in to comment.