Skip to content

Commit 831179e

Browse files
committed
Fix browserify transform sRGB_IEC61966_2_1.icc file
1 parent f2e9b16 commit 831179e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
### Unreleased
44

5+
- Fix browserify transform sRGB_IEC61966_2_1.icc file
6+
57
### [v0.15.0] - 2024-03-23
68

79
- Add subset for PDF/UA

lib/mixins/pdfa.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export default {
1616

1717
endSubset() {
1818
this._addPdfaMetadata();
19-
this._addColorOutputIntent(`${__dirname}/data/sRGB_IEC61966_2_1.icc`);
19+
this._addColorOutputIntent();
2020
},
2121

22-
_addColorOutputIntent(pICCPath) {
23-
const iccProfile = fs.readFileSync(pICCPath);
22+
_addColorOutputIntent() {
23+
const iccProfile = fs.readFileSync(`${__dirname}/data/sRGB_IEC61966_2_1.icc`);
2424

2525
const colorProfileRef = this.ref({
2626
Length: iccProfile.length,

0 commit comments

Comments
 (0)