Add printable guest sign studio and refine event imagery
This commit is contained in:
@@ -13,7 +13,7 @@ describe("object keys", () => {
|
||||
test("keeps originals and variants under the same photo prefix", () => {
|
||||
const prefix = photoObjectPrefix(eventId, photoId);
|
||||
expect(originalObjectKey(eventId, photoId).startsWith(prefix)).toBe(true);
|
||||
expect(displayObjectKey(eventId, photoId)).toBe(`${prefix}display.jpg`);
|
||||
expect(thumbObjectKey(eventId, photoId)).toBe(`${prefix}thumb.jpg`);
|
||||
expect(displayObjectKey(eventId, photoId)).toBe(`${prefix}display.webp`);
|
||||
expect(thumbObjectKey(eventId, photoId)).toBe(`${prefix}thumb.webp`);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,11 +3,11 @@ export function originalObjectKey(eventId: string, photoId: string) {
|
||||
}
|
||||
|
||||
export function displayObjectKey(eventId: string, photoId: string) {
|
||||
return `events/${eventId}/photos/${photoId}/display.jpg`;
|
||||
return `events/${eventId}/photos/${photoId}/display.webp`;
|
||||
}
|
||||
|
||||
export function thumbObjectKey(eventId: string, photoId: string) {
|
||||
return `events/${eventId}/photos/${photoId}/thumb.jpg`;
|
||||
return `events/${eventId}/photos/${photoId}/thumb.webp`;
|
||||
}
|
||||
|
||||
export function photoObjectPrefix(eventId: string, photoId: string) {
|
||||
|
||||
Reference in New Issue
Block a user