Skip to content

feat(preview): add image preview#1160

Open
bolinocroustibat wants to merge 7 commits into
mainfrom
feat/image-preview
Open

feat(preview): add image preview#1160
bolinocroustibat wants to merge 7 commits into
mainfrom
feat/image-preview

Conversation

@bolinocroustibat

@bolinocroustibat bolinocroustibat commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Following this example and discussion, it seems data.gouv.fr can also have images as ressources, so they should be displayed in preview.

Since it's not a JS fetch() but just a simple HTML <img src...>, there are no CORS issue to manage.

@bolinocroustibat bolinocroustibat self-assigned this Jun 29, 2026
@bolinocroustibat bolinocroustibat changed the title feat(preview): add image preview for raster resources feat(preview): add image preview Jun 29, 2026
Comment thread datagouv-components/src/components/ResourceAccordion/ImagePreview.client.vue Outdated
Comment thread datagouv-components/src/components/ResourceAccordion/ImagePreview.client.vue Outdated
…ePreview.client.vue

Co-authored-by: Nicolas KEMPF <nicolas@conciergerie.dev>
Comment thread datagouv-components/src/functions/resources.ts
ThibaudDauce pushed a commit to opendatateam/udata that referenced this pull request Jul 2, 2026
Accept WebP as image format for upload resource, since we accept many
others. WebP is a widely supported web image standard that is
increasingly used.

See also datagouv/cdata#1160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants