11ty / eleventy-img

Utility to perform build-time image transformations.
https://www.11ty.dev/docs/plugins/image/
433 stars 53 forks source link

feat: apply concurrency to individual sharp instances #210

Closed ryanccn closed 2 months ago

ryanccn commented 4 months ago

Closes #205

zachleat commented 2 months ago

Shipping with 5.0.0-alpha.1, thank you!!

zachleat commented 2 months ago

Unfortunately I had to revert this one, it was causing this test to consistently break in Windows. We'll have to try again another day!

test › Keep a cache, don’t reuse with if the image changes, check output

  Rejected promise returned by test. Reason:

  Error {
    code: 'UNKNOWN',
    dest: 'C:\\Users\\eleve\\code\\eleventy-img\\test\\generated-modify2-bio.jpg',
    errno: -4094,
    path: 'C:\\Users\\eleve\\code\\eleventy-img\\test\\modify2-bio-grayscale.jpg',
    syscall: 'copyfile',
    message: 'UNKNOWN: unknown error, copyfile \'C:\\Users\\eleve\\code\\eleventy-img\\test\\modify2-bio-grayscale.jpg\' -> \'C:\\Users\\eleve\\code\\eleventy-img\\test\\generated-modify2-bio.jpg\'',
  }

  Error: UNKNOWN: unknown error, copyfile 'C:\Users\eleve\code\eleventy-img\test\modify2-bio-grayscale.jpg' -> 'C:\Users\eleve\code\eleventy-img\test\generated-modify2-bio.jpg'
      at Object.copyFileSync (node:fs:3005:11)
      at C:\Users\eleve\code\eleventy-img\test\test.js:551:6

https://github.com/11ty/eleventy-img/actions/runs/8759975926