Comments (1)
A little bit late, but:
$iccCMYKPath = 'Coated_Fogra39L_VIGC_300.icc';
$iccRGBPath = 'AdobeRGB1998.icc';
$img->stripImage();
$img->setImageColorspace(Imagick::COLORSPACE_SRGB);
$icc_rgb = file_get_contents($iccRGBPath);
$img->profileImage('icc', $icc_rgb);
unset($icc_rgb);
$icc_cmyk = file_get_contents($iccCMYKPath);
$img->profileImage('icc', $icc_cmyk);
$img->setImageColorspace(Imagick::COLORSPACE_CMYK);
unset($icc_cmyk);
$img->stripImage();
As far as I remember, I had to first profile image with rgb and then profile it with fogra.
from tcpdf.
Related Issues (20)
- ImagePngAlpha() different outputs with imagick and gd
- Rendering-Bug Using Radio Buttons in HTML Mode
- problems with german umlaute in helvetia HOT 1
- Question: created pdf file font resources in the absence of ToUnicode map HOT 3
- TCPDF Tamil font not working properly
- Extra space with img tag using writeHTML function with MultiCell
- List of HTML tags supported by TCPDF
- Images potentially misplaced when using SetRTL() after update to 6.7.2 HOT 1
- Multicell borders over page break
- Regression in 6.7.2 - undefined index error HOT 1
- add xyekan font HOT 1
- With the new update to 6.7.2, the usage of Mutlicell is showing Undefined Array key -1 error with php 8.1
- Update comment for renamed serializeTCPDFtagParameters
- print pdf bug: when the page more then 1000
- Font file cannot be found on unix system because auf case sensitivity
- Snyk path traversal vulnerability HOT 8
- Using form fields relies on helvetica font
- Baroce label design look weird. NEED HELP
- Disappeared 6.7.x tags HOT 10
- TCPDF vulnerable to Regular Expression Denial of Service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcpdf.