Skip to content

Commit

Permalink
feat: STORCLIENT-2331 Added WebP support to ImageLoaders
Browse files Browse the repository at this point in the history
  • Loading branch information
“mkorczewski” authored and Korczuch committed Nov 22, 2024
1 parent ebe9030 commit b180e6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/viewers/box3d/image360/Image360Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const VIEWERS = [
NAME: 'Image360',
CONSTRUCTOR: Image360Viewer,
REP: '3d',
EXT: ['jpg', 'jpeg', 'png', 'ai', 'bmp', 'dcm', 'eps', 'gif', 'heic', 'ps', 'psd', 'svg', 'tga', 'tif', 'tiff'],
EXT: ['jpg', 'jpeg', 'png', 'ai', 'bmp', 'dcm', 'eps', 'gif', 'heic', 'ps', 'psd', 'svg', 'tga', 'tif', 'tiff', 'webp'],
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/image/ImageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const VIEWERS = [
NAME: 'Image',
CONSTRUCTOR: ImageViewer,
REP: 'png',
EXT: ['ai', 'bmp', 'dcm', 'eps', 'gif', 'heic', 'png', 'ps', 'psd', 'tga', 'tif', 'tiff'],
EXT: ['ai', 'bmp', 'dcm', 'eps', 'gif', 'heic', 'png', 'ps', 'psd', 'tga', 'tif', 'tiff', 'webp'],
ASSET: '1.png',
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Rotating the viewer will rotate the image 90 degrees clockwise. At the default z

## Supported File Extensions

`ai, bmp, dcm, eps, gif, heic, png, ps, psd, tga, tif, tiff`
`ai, bmp, dcm, eps, gif, heic, png, ps, psd, tga, tif, tiff, webp`

## Options

Expand Down

0 comments on commit b180e6d

Please sign in to comment.