webp image support
This commit is contained in:
@@ -439,7 +439,7 @@ export default function AddStoryContent() {
|
|||||||
</label>
|
</label>
|
||||||
<ImageUpload
|
<ImageUpload
|
||||||
onImageSelect={setCoverImage}
|
onImageSelect={setCoverImage}
|
||||||
accept="image/jpeg,image/png"
|
accept="image/jpeg,image/png,image/webp"
|
||||||
maxSizeMB={5}
|
maxSizeMB={5}
|
||||||
aspectRatio="3:4"
|
aspectRatio="3:4"
|
||||||
placeholder="Drop a cover image here or click to select"
|
placeholder="Drop a cover image here or click to select"
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ export default function EditAuthorPage() {
|
|||||||
</label>
|
</label>
|
||||||
<ImageUpload
|
<ImageUpload
|
||||||
onImageSelect={setAvatarImage}
|
onImageSelect={setAvatarImage}
|
||||||
accept="image/jpeg,image/png"
|
accept="image/jpeg,image/png,image/webp"
|
||||||
maxSizeMB={5}
|
maxSizeMB={5}
|
||||||
aspectRatio="1:1"
|
aspectRatio="1:1"
|
||||||
placeholder="Drop an avatar image here or click to select"
|
placeholder="Drop an avatar image here or click to select"
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ export default function EditStoryPage() {
|
|||||||
</label>
|
</label>
|
||||||
<ImageUpload
|
<ImageUpload
|
||||||
onImageSelect={setCoverImage}
|
onImageSelect={setCoverImage}
|
||||||
accept="image/jpeg,image/png"
|
accept="image/jpeg,image/png,image/webp"
|
||||||
maxSizeMB={5}
|
maxSizeMB={5}
|
||||||
aspectRatio="3:4"
|
aspectRatio="3:4"
|
||||||
placeholder="Drop a new cover image here or click to select"
|
placeholder="Drop a new cover image here or click to select"
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export default function CollectionForm({
|
|||||||
<input
|
<input
|
||||||
id="coverImage"
|
id="coverImage"
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/jpeg,image/png"
|
accept="image/jpeg,image/png,image/webp"
|
||||||
onChange={handleCoverImageChange}
|
onChange={handleCoverImageChange}
|
||||||
className="w-full px-3 py-2 border theme-border rounded-lg theme-card theme-text focus:outline-none focus:ring-2 focus:ring-theme-accent"
|
className="w-full px-3 py-2 border theme-border rounded-lg theme-card theme-text focus:outline-none focus:ring-2 focus:ring-theme-accent"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user