<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>imagemagick Archivi - Cesare Bordi | Innovation Manager &amp; Back-end Developer</title>
	<atom:link href="https://www.cesarebordi.it/tag/imagemagick/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.cesarebordi.it/tag/imagemagick/</link>
	<description>Innovare con soluzioni software efficaci e gioco di squadra</description>
	<lastBuildDate>Sat, 14 Nov 2020 10:08:57 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>https://www.cesarebordi.it/wp-content/uploads/2016/02/CB-logo-88x88.png</url>
	<title>imagemagick Archivi - Cesare Bordi | Innovation Manager &amp; Back-end Developer</title>
	<link>https://www.cesarebordi.it/tag/imagemagick/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Conversione immagine: Imagemagick RGB to CMYK in PHP</title>
		<link>https://www.cesarebordi.it/imagemagick-rgb-to-cmyk-php/</link>
					<comments>https://www.cesarebordi.it/imagemagick-rgb-to-cmyk-php/#respond</comments>
		
		<dc:creator><![CDATA[cesarebordi]]></dc:creator>
		<pubDate>Mon, 04 Dec 2017 19:32:24 +0000</pubDate>
				<category><![CDATA[Articoli]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[imagick]]></category>
		<category><![CDATA[immagini]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[web project]]></category>
		<category><![CDATA[webserver]]></category>
		<guid isPermaLink="false">http://www.cesarebordi.it/?p=473</guid>

					<description><![CDATA[<p>Spero di poter aiutare i colleghi developer alle prese con la conversione attraverso Imagemagick RGB to CMYK. Scenario: dobbiamo convertire lato server un&#8217;immagine RGB in CMYK Problema: letta...</p>
<p>L'articolo <a href="https://www.cesarebordi.it/imagemagick-rgb-to-cmyk-php/">Conversione immagine: Imagemagick RGB to CMYK in PHP</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Spero di poter aiutare i colleghi developer alle prese con la conversione attraverso <strong>Imagemagick RGB to CMYK</strong>.<br />
<span id="more-473"></span></p>
<p><strong>Scenario</strong>: dobbiamo convertire lato server un&#8217;immagine<strong> RGB in CMYK</strong></p>
<p><strong>Problema</strong>: letta la scarna documentazione di <strong>Imagemagick</strong> sulla refernece di <strong>Php</strong> ci imbattiamo in un annoso problema: l&#8217;<strong>immagine ottenuta è in negativo</strong>!!!</p>
<p><strong>Soluzione</strong>: dopo aver letto post su post sui soliti siti senza riuscire a trovare una soluzione e grazie al supporto di Giacomarco, ecco svelato il mistero.</p>
<p>Se si deve convertire un&#8217;immagine occorre usare&nbsp;<strong>transformimagecolorspace</strong>, mentre se si sta generando un&#8217;immagine ex-novo allora si deve utilizzare <strong>transformimagecolorspace:</strong></p>
<pre class="brush: php; title: ; notranslate">$image-&amp;gt;transformimagecolorspace(Imagick::COLORSPACE_CMYK);</pre>
<p>Se invece si sta creando un&#8217;immagine ex-novo allora si deve utilizzare&nbsp;<strong>setImageColorSpace</strong></p>
<pre class="brush: php; title: ; notranslate">$image-&amp;gt;setImageColorSpace(Imagick::COLORSPACE_CMYK);</pre>
<p>Ecco un esempio:</p>
<pre class="brush: php; title: ; notranslate">
$image = new Imagick();
$image-&amp;gt;readImage(rgb.jpg);
$image-&amp;gt;transformimagecolorspace(Imagick::COLORSPACE_CMYK);
$image-&amp;gt;profileImage('icc', file_get_contents(/path/CoatedFOGRA27.icc'));
$image-&amp;gt;writeImage(cmyk.rgb);
</pre>
<p>Per gli amici in lingua inglese: <span lang="en"><strong>[SOLVED] imagemagick convert image RGB to CMYK</strong>!</span></p>
<p>L'articolo <a href="https://www.cesarebordi.it/imagemagick-rgb-to-cmyk-php/">Conversione immagine: Imagemagick RGB to CMYK in PHP</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cesarebordi.it/imagemagick-rgb-to-cmyk-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
