astro/packages/integrations/image/test/fixtures
Alexey Shmalko b3e65991f7
fix(image): allow usage of image from any directory (#5932)
Currently, @astrojs/image allows *importing* images from srcDir
only. Importing images from outside srcDir fails miserably *in dev
mode* and produces incorrect src.

This happens because `path.relative(fileURLToPath(config.srcDir), id)`
resolves to "../something" and when joined with '/@astroimage' cancels
it out (`join('/@astroimage', '../../something')` => `'/something'`).

Rework /@astroimage URL scheme to be similar to "/@fs/" scheme—always
export absolute path to the target file.
2023-01-30 15:29:41 -05:00
..
background-color-image Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
basic-image fix(image): allow usage of image from any directory (#5932) 2023-01-30 15:29:41 -05:00
basic-picture fix(image): allow usage of image from any directory (#5932) 2023-01-30 15:29:41 -05:00
get-image-remote Fix remote images in SSG mode (#5021) 2022-10-07 17:08:15 -04:00
no-alt-text-image Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
no-alt-text-picture Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
rotation Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
squoosh-service Support relative protocol image URL (#5072) 2022-10-13 11:59:38 -04:00
with-mdx Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00