- string | undefined
capitalize?: boolean
+ hide?: boolean
hideIfEmpty?: boolean
- hideTemporarily?: boolean
hideBasedOnCamera?: (make?: string, mode?: string) => boolean
loadingMessage?: string
checkbox?: boolean
@@ -50,7 +50,8 @@ const FORM_METADATA: Record = {
blurData: {
label: 'blur data',
readOnly: true,
- required: true,
+ required: BLUR_ENABLED,
+ hideIfEmpty: !BLUR_ENABLED,
loadingMessage: 'Generating blur data ...',
},
url: { label: 'url', readOnly: true },
@@ -70,7 +71,7 @@ const FORM_METADATA: Record = {
iso: { label: 'ISO' },
exposureTime: { label: 'exposure time' },
exposureCompensation: { label: 'exposure compensation' },
- locationName: { label: 'location name', hideTemporarily: true },
+ locationName: { label: 'location name', hide: true },
latitude: { label: 'latitude' },
longitude: { label: 'longitude' },
takenAt: { label: 'taken at' },
@@ -82,7 +83,7 @@ const FORM_METADATA: Record = {
export const FORM_METADATA_ENTRIES =
(Object.entries(FORM_METADATA) as [keyof PhotoFormData, FormMeta][])
- .filter(([_, meta]) => !meta.hideTemporarily);
+ .filter(([_, meta]) => !meta.hide);
export const convertFormKeysToLabels = (keys: (keyof PhotoFormData)[]) =>
keys.map(key => FORM_METADATA[key].label.toUpperCase());
diff --git a/src/photo/index.ts b/src/photo/index.ts
index bef1ae1b..1a06ec6c 100644
--- a/src/photo/index.ts
+++ b/src/photo/index.ts
@@ -51,7 +51,7 @@ export interface PhotoDbInsert extends PhotoExif {
id: string
url: string
extension: string
- blurData: string
+ blurData?: string
title?: string
tags?: string[]
locationName?: string
diff --git a/src/site/SiteChecklistClient.tsx b/src/site/SiteChecklistClient.tsx
index fb940901..e69b363d 100644
--- a/src/site/SiteChecklistClient.tsx
+++ b/src/site/SiteChecklistClient.tsx
@@ -37,6 +37,7 @@ export default function SiteChecklistClient({
showFilmSimulations,
showExifInfo,
isProModeEnabled,
+ isBlurEnabled,
isGeoPrivacyEnabled,
isPriorityOrderEnabled,
isPublicApiEnabled,
@@ -270,6 +271,16 @@ export default function SiteChecklistClient({
higher quality image storage:
{renderEnvVars(['NEXT_PUBLIC_PRO_MODE'])}
+
+ Set environment variable to {'"1"'} to prevent
+ image blur data being stored and displayed
+ {renderEnvVars(['NEXT_PUBLIC_BLUR_DISABLED'])}
+