Skip to content

Commit

Permalink
feat: support iccprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Mar 28, 2023
1 parent d928d69 commit 1a762b0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions api/dicom-web/controller/WADO-RS/service/rendered.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ const {
magick.iccProfile(dest);
},
"srgb": async ()=> {
magick.iccProfile(path.join(process.cwd(), "models/DICOMWeb/iccprofiles/sRGB.icc"));
magick.iccProfile(path.join(process.cwd(), "models/DICOM/dicomWEB/iccprofiles/sRGB.icc"));
},
"adobergb": async () => {
magick.iccProfile(path.join(process.cwd(), "models/DICOMWeb/iccprofiles/adobeRGB.icc"));
magick.iccProfile(path.join(process.cwd(), "models/DICOM/dicomWEB/iccprofiles/adobeRGB.icc"));
},
"rommrgb": async ()=> {
magick.iccProfile(path.join(process.cwd(), "models/DICOMWeb/iccprofiles/rommRGB.icc"));
magick.iccProfile(path.join(process.cwd(), "models/DICOM/dicomWEB/iccprofiles/rommRGB.icc"));
}
};
try {
Expand Down
Binary file added models/DICOM/dicomWEB/iccprofiles/adobeRGB.icc
Binary file not shown.
Binary file added models/DICOM/dicomWEB/iccprofiles/rommRGB.icc
Binary file not shown.
Binary file added models/DICOM/dicomWEB/iccprofiles/sRGB.icc
Binary file not shown.
2 changes: 0 additions & 2 deletions models/magick/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Magick {
try {
this.magickCommand.push("-quality");
this.magickCommand.push(q);
/*await imagemagickCli.exec(`${this.magickPrefix} ${this.tempFilename} -quality ${q} ${this.tempFilename}`)*/
//execSync(`magick ${this.tempFilename} -quality ${q} ${this.tempFilename}`);
return this;
} catch(e) {
console.error(e);
Expand Down

0 comments on commit 1a762b0

Please sign in to comment.