<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>Обработка изображений средствами PHP</title>
    <description>Создание, закачка, обработка и удаление изображений средствами PHP или сопутствующих библиотек</description>
    <pubDate>Wed, 22 Apr 2026 17:26:53 +0000</pubDate>
    <lastBuildDate>Wed, 22 Apr 2026 17:26:53 +0000</lastBuildDate>
    <generator>Форум PHP Программистов | PHP.ru</generator>
    <link>https://php.ru/forum/forums/obrabotka-izobrazhenij-sredstvami-php.11/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://php.ru/forum/forums/obrabotka-izobrazhenij-sredstvami-php.11/index.rss"/>
    <item>
      <title>Как сделать окантовку текста в картинке?</title>
      <pubDate>Fri, 31 May 2024 06:53:25 +0000</pubDate>
      <link>https://php.ru/forum/threads/kak-sdelat-okantovku-teksta-v-kartinke.13201/</link>
      <guid>https://php.ru/forum/threads/kak-sdelat-okantovku-teksta-v-kartinke.13201/</guid>
      <author>invalid@example.com (czech)</author>
      <dc:creator>czech</dc:creator>
      <content:encoded><![CDATA[<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$br</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;текст&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a target="_blank" rel="nofollow" href="http://www.php.net/header"><span style="color: #990000;">Header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-type: image/png'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$font</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'hoog.ttf'</span> <span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> win_uni <span style="color: #009900;">&#40;</span><span style="color: #000088;">$in</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #000088;">$in</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/convert_cyr_string"><span style="color: #990000;">convert_cyr_string</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$in</span> <span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;i&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <a target="_blank" rel="nofollow" href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$in</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$char</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$in</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">175</span><span style="color: #009900;">&#41;</span>?<span style="color: #0000ff;">&quot;&amp;#&quot;</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1040</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">176</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;;&quot;</span><span style="color: #339933;">:</span><span style="color: #000088;">$in</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #009900;">&#125;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$out</span><span style="color: #339933;">;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$im</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/imagecreatefrompng"><span style="color: #990000;">ImageCreateFromPng</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'image.png'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$red</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$im</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a target="_blank" rel="nofollow" href="http://www.php.net/imagettftext"><span style="color: #990000;">imagettftext</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$im</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">30</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">15</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$red</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$font</span> <span style="color: #339933;">,</span> win_uni<span style="color: #009900;">&#40;</span><span style="color: #000088;">$br</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/kak-sdelat-okantovku-teksta-v-kartinke.13201/" class="internalLink">Как сделать окантовку текста в картинке?</a>]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Сравнение изображений через хеш в Imagick</title>
      <pubDate>Sun, 05 May 2024 14:04:27 +0000</pubDate>
      <link>https://php.ru/forum/threads/sravnenie-izobrazhenij-cherez-xesh-v-imagick.102240/</link>
      <guid>https://php.ru/forum/threads/sravnenie-izobrazhenij-cherez-xesh-v-imagick.102240/</guid>
      <author>invalid@example.com (zhenia3003)</author>
      <dc:creator>zhenia3003</dc:creator>
      <content:encoded><![CDATA[Пытаюсь сравнить 2 одинаковых изображения через хеш. Разница изображений только в размерах, первое - 800х600 px, второе - 1280х960 px.<br />
Делаю так:<br />
1. Уменьшаю изображения до 10х10 px.<br />
2. Применяю фильтр в серые тона.<br />
3. Снимаю хеш.<br />
Однако хеш у двух сравниваемых изображений разный, что делаю не так? <br />
<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$imagick</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Imagick<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$imagick</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">readImage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DOCUMENT_ROOT'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/1.jpg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$imagick</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">resizeImage</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> Imagick<span style="color: #339933;">::</span><span style="color: #004000;">FILTER_LANCZOS</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/sravnenie-izobrazhenij-cherez-xesh-v-imagick.102240/" class="internalLink">Сравнение изображений через хеш в Imagick</a>]]></content:encoded>
      <slash:comments>8</slash:comments>
    </item>
    <item>
      <title>Seeking Advice on Image Processing with PHP</title>
      <pubDate>Fri, 03 May 2024 05:10:39 +0000</pubDate>
      <link>https://php.ru/forum/threads/seeking-advice-on-image-processing-with-php.102256/</link>
      <guid>https://php.ru/forum/threads/seeking-advice-on-image-processing-with-php.102256/</guid>
      <author>invalid@example.com (Rohan Sharma)</author>
      <dc:creator>Rohan Sharma</dc:creator>
      <content:encoded><![CDATA[Hello PHP Community,<br />
<br />
I&#039;m currently working on a project that involves image processing using PHP, and I&#039;m looking for some guidance and advice from experienced members of this forum.<br />
<br />
Specifically, I&#039;m interested in learning about best practices, efficient techniques, and useful libraries or tools for image manipulation and processing in PHP. Whether it&#039;s resizing images, applying filters and effects, or extracting specific features from images, I&#039;m eager to hear about your experiences and...<br />
<br />
<a href="https://php.ru/forum/threads/seeking-advice-on-image-processing-with-php.102256/" class="internalLink">Seeking Advice on Image Processing with PHP</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>MiAl’s Server Pack</title>
      <pubDate>Wed, 06 Mar 2024 07:58:47 +0000</pubDate>
      <link>https://php.ru/forum/threads/mials-server-pack.102119/</link>
      <guid>https://php.ru/forum/threads/mials-server-pack.102119/</guid>
      <author>invalid@example.com (Lyubopysh)</author>
      <dc:creator>Lyubopysh</dc:creator>
      <content:encoded><![CDATA[Win 10, на нем MiAl’s Server Pack<br />
 разрабатываю фотогаллерею на php <br />
браузер Яндекс и Edge<br />
 из каталога с фотками удалил некоторые фотки, но яндексбраузер их всё равно показывает. <br />
почистил кэш, всё равно показывает <br />
удалил папку полностью, всё равно показывает <br />
ребутнул комп, всё равно показывает <br />
открыл сайт в Edge, вместо картинок значки но всё равно показывает!!!! <br />
как такое возмодно? <br />
меняю стили, изменения тут же отображаются, <br />
 каталога нету а он его видит!]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Не отображаются изображения в FireFox</title>
      <pubDate>Thu, 17 Aug 2023 13:28:58 +0000</pubDate>
      <link>https://php.ru/forum/threads/ne-otobrazhajutsja-izobrazhenija-v-firefox.101666/</link>
      <guid>https://php.ru/forum/threads/ne-otobrazhajutsja-izobrazhenija-v-firefox.101666/</guid>
      <author>invalid@example.com (rosss)</author>
      <dc:creator>rosss</dc:creator>
      <content:encoded><![CDATA[<a href="https://2362fb97a6652e2c2db8f38e5d9b7d64.dipao.ru" target="_blank" class="externalLink" rel="nofollow">https://2362fb97a6652e2c2db8f38e5d9b7d64.dipao.ru</a><br />
<br />
Фотографии хранятся на стороннем сервере, а в проекте используются через background-image.  На странице есть &lt;meta name=&quot;referrer&quot; content=&quot;always&quot;&gt;<br />
Во всех браузерах все работает замечательно, но FireFox не отображает картинку и пишет <b>Referrer Policy: Ignoring the less restricted referrer policy “unsafe-url” for the cross-site request:</b>...<br />
<br />
<a href="https://php.ru/forum/threads/ne-otobrazhajutsja-izobrazhenija-v-firefox.101666/" class="internalLink">Не отображаются изображения в FireFox</a>]]></content:encoded>
    </item>
    <item>
      <title>Создать/изменить разрешение изображения</title>
      <pubDate>Wed, 22 Mar 2023 12:12:59 +0000</pubDate>
      <link>https://php.ru/forum/threads/sozdat-izmenit-razreshenie-izobrazhenija.101263/</link>
      <guid>https://php.ru/forum/threads/sozdat-izmenit-razreshenie-izobrazhenija.101263/</guid>
      <author>invalid@example.com (VNN)</author>
      <dc:creator>VNN</dc:creator>
      <content:encoded><![CDATA[Добрый день всем! Создаю изображение и выкладываю его на карту Яндекс (<a href="http://ckp.mhi-ras.ru/generate_image_do-sh_velosities.php" target="_blank" class="externalLink" rel="nofollow">http://ckp.mhi-ras.ru/generate_image_do-sh_velosities.php</a>). Однако при попытке увеличить полученное изображение (надо рассмотреть получившиеся черные линии) линии, нарисованные с помощью функции imageline(), представляются некими &quot;червячками&quot;. Не знаю, почему это происходит, но почему-то решила попробовать изменить разрешение, однако не знаю, как это сделать... Может, кто-нибудь знает?]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Скрипт для изменения изображений</title>
      <pubDate>Thu, 02 Feb 2023 10:59:54 +0000</pubDate>
      <link>https://php.ru/forum/threads/skript-dlja-izmenenija-izobrazhenij.100905/</link>
      <guid>https://php.ru/forum/threads/skript-dlja-izmenenija-izobrazhenij.100905/</guid>
      <author>invalid@example.com (sound)</author>
      <dc:creator>sound</dc:creator>
      <content:encoded><![CDATA[Нужно чтобы я мог<br />
1) Выбрать область на изображении из которой нужно будет создать новое изображение<br />
2) При выборе области писать размер то есть сколько пикселей по высоте и ширине<br />
есть что то готовое для этой задачи ?]]></content:encoded>
      <slash:comments>9</slash:comments>
    </item>
    <item>
      <title>Затереть автомобильный номер</title>
      <pubDate>Thu, 12 Jan 2023 17:18:48 +0000</pubDate>
      <link>https://php.ru/forum/threads/zateret-avtomobilnyj-nomer.100881/</link>
      <guid>https://php.ru/forum/threads/zateret-avtomobilnyj-nomer.100881/</guid>
      <author>invalid@example.com (primdesign)</author>
      <dc:creator>primdesign</dc:creator>
      <content:encoded><![CDATA[Всем привет!<br />
<br />
Задача состоит в том, как на изображении автомобиля вычислять координаты автомобильного номера и накладывать на него другую картинку или же просто белый блок. Методом проб и ошибок удалось найти сервис, но он не очень хорошо отрабатывает эту задачу, вешает блок исключительно горизонтальным, без проекции. Кто сталкивался, может есть какие-то сервисы или предложения! Готовы по сотрудничать в этом вопросе! Пример как на авто ру, когда заливается автомобиль на номер накладывается...<br />
<br />
<a href="https://php.ru/forum/threads/zateret-avtomobilnyj-nomer.100881/" class="internalLink">Затереть автомобильный номер</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Можно ли наложить изображение на другое изображение без затирания фона прозрачными пикселами?</title>
      <pubDate>Fri, 30 Dec 2022 18:13:07 +0000</pubDate>
      <link>https://php.ru/forum/threads/mozhno-li-nalozhit-izobrazhenie-na-drugoe-izobrazhenie-bez-zatiranija-fona-prozrachnymi-pikselami.100818/</link>
      <guid>https://php.ru/forum/threads/mozhno-li-nalozhit-izobrazhenie-na-drugoe-izobrazhenie-bez-zatiranija-fona-prozrachnymi-pikselami.100818/</guid>
      <author>invalid@example.com (site3d)</author>
      <dc:creator>site3d</dc:creator>
      <content:encoded><![CDATA[Есть созданное изображение с фоном:<br />
<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$im</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/imagecreatetruecolor"><span style="color: #990000;">imagecreatetruecolor</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a target="_blank" rel="nofollow" href="http://www.php.net/imagesavealpha"><span style="color: #990000;">imagesavealpha</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a target="_blank" rel="nofollow" href="http://www.php.net/imagealphablending"><span style="color: #990000;">imagealphablending</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a target="_blank" rel="nofollow" href="http://www.php.net/imagefilledrectangle"><span style="color: #990000;">imagefilledrectangle</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$im</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$height</span><span style="color: #339933;">,</span> <span style="color: #000088;">$backgroundColor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
</ol></div>
</div>И есть другое изображение из png файла с прозрачным фоном $bgIm. Хочу переместить это изображение в первое с сохранение цвета фона в участках, где фон второго изображения прозрачный. Пока делаю так. Пробовал и imagecopymerge и imagecopyresampled, не помогло...<br />
<br />
<a href="https://php.ru/forum/threads/mozhno-li-nalozhit-izobrazhenie-na-drugoe-izobrazhenie-bez-zatiranija-fona-prozrachnymi-pikselami.100818/" class="internalLink">Можно ли наложить изображение на другое изображение без затирания фона прозрачными пикселами?</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Можно ли создать растр из текстового файла средствами PHP</title>
      <pubDate>Wed, 20 Jul 2022 03:40:02 +0000</pubDate>
      <link>https://php.ru/forum/threads/mozhno-li-sozdat-rastr-iz-tekstovogo-fajla-sredstvami-php.99460/</link>
      <guid>https://php.ru/forum/threads/mozhno-li-sozdat-rastr-iz-tekstovogo-fajla-sredstvami-php.99460/</guid>
      <author>invalid@example.com (VNN)</author>
      <dc:creator>VNN</dc:creator>
      <content:encoded><![CDATA[Вход - текстовый файл, содержащий три столбца. Первые два столбца - координаты, третий столбец содержит значения параметра в соответствующих точках с координатами.<br />
<br />
Выход - файл с растровым изображением, к нему сопровождающая палитра с цветами.<br />
<br />
Вопрос - можно ли это сделать средствами PHP и, если да, то хорошо бы увидеть пример.<br />
<br />
Заранее спасибо.]]></content:encoded>
      <slash:comments>7</slash:comments>
    </item>
    <item>
      <title>Компактное расположение фигур SVG в ограниченных рамках</title>
      <pubDate>Thu, 09 Sep 2021 07:52:02 +0000</pubDate>
      <link>https://php.ru/forum/threads/kompaktnoe-raspolozhenie-figur-svg-v-ogranichennyx-ramkax.94469/</link>
      <guid>https://php.ru/forum/threads/kompaktnoe-raspolozhenie-figur-svg-v-ogranichennyx-ramkax.94469/</guid>
      <author>invalid@example.com (RLion)</author>
      <dc:creator>RLion</dc:creator>
      <content:encoded><![CDATA[Здравствуйте!<br />
Допустим, рисую фигуры в таком формате:<br />
<br />



<div class="ToggleTriggerAnchor bbCodeSpoilerContainer">
	<button class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly"
		title="Нажмите, чтобы раскрыть или скрыть спойлер"
		data-target="> .SpoilerTarget"><span>Спойлер: <span class="SpoilerTitle">Код</span></span></button>
	<div class="SpoilerTarget bbCodeSpoilerText">

<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;?php</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">header ('Content-Type: image/svg+xml');</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">header ('Content-Disposition: filename=example.svg');</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; echo &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot; standalone=\&quot;no\&quot;?&gt;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;svg version=\&quot;1.1\&quot;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;baseProfile=\&quot;full\&quot;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;xmlns=\&quot;http://www.w3.org/2000/svg\&quot;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;xmlns:xlink=\&quot;http://www.w3.org/1999/xlink\&quot;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;xmlns:ev=\&quot;http://www.w3.org/2001/xml-events\&quot;&gt;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &lt;g fill=\&quot;none\&quot; stroke=\&quot;black\&quot;&gt;\n&quot;;...</div></li>
</ol></div>
</div></div>
</div><br />
<a href="https://php.ru/forum/threads/kompaktnoe-raspolozhenie-figur-svg-v-ogranichennyx-ramkax.94469/" class="internalLink">Компактное расположение фигур SVG в ограниченных рамках</a>]]></content:encoded>
    </item>
    <item>
      <title>Не формируется картинка (черное поле)</title>
      <pubDate>Thu, 11 Feb 2021 11:36:15 +0000</pubDate>
      <link>https://php.ru/forum/threads/ne-formiruetsja-kartinka-chernoe-pole.90609/</link>
      <guid>https://php.ru/forum/threads/ne-formiruetsja-kartinka-chernoe-pole.90609/</guid>
      <author>invalid@example.com (jurvrn.ru)</author>
      <dc:creator>jurvrn.ru</dc:creator>
      <content:encoded><![CDATA[Вместо картинки черное поле, то есть шрифт на картинку не отображается.<br />
Не подскажите почему? Шрифт лежит в папке со скриптом<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><a target="_blank" rel="nofollow" href="http://www.php.net/session_start"><span style="color: #990000;">session_start</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// создаем случайное число и сохраняем в сессии</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$number</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9999</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'back_capt'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$number</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// создаем изображение</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$img</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/imagecreatetruecolor"><span style="color: #990000;">imagecreatetruecolor</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">75</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// создаем три цвета: для числа, для шума и для фона</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$white</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">230</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">230</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">230</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$grey</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/imagecolorallocate"><span style="color: #990000;">imagecolorallocate</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">150</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">150</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">150</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$black</span> <span style="color: #339933;">=...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/ne-formiruetsja-kartinka-chernoe-pole.90609/" class="internalLink">Не формируется картинка (черное поле)</a>]]></content:encoded>
      <slash:comments>9</slash:comments>
    </item>
    <item>
      <title>изменение размера с сохранением качества</title>
      <pubDate>Sun, 03 May 2020 11:12:37 +0000</pubDate>
      <link>https://php.ru/forum/threads/izmenenie-razmera-s-soxraneniem-kachestva.85622/</link>
      <guid>https://php.ru/forum/threads/izmenenie-razmera-s-soxraneniem-kachestva.85622/</guid>
      <author>invalid@example.com (SibBear)</author>
      <dc:creator>SibBear</dc:creator>
      <content:encoded><![CDATA[какими средствами можно уменьшить картинку по размеру при этом сохранить качество?<br />
есть картинка 800х800, ее нужно программно сжать до 250х250<br />
пробовал стандартный resize<br />
пробовал wideimage<br />
получается отвратное качество<br />
не пробовал imagic - не смог пока настроить на локале, попробую на живом хосте.<br />
<br />
фактически я понимаю что ее нужно &quot;уплотнить&quot;, сделать размер 250 но увеличить количество пикселей вместо 100 у оригинала в например 200 на уменьшенном... какие средства такое умеют?]]></content:encoded>
      <slash:comments>12</slash:comments>
    </item>
    <item>
      <title>Сжатие и обрезание изображения перед загрузкой</title>
      <pubDate>Mon, 27 Apr 2020 13:17:18 +0000</pubDate>
      <link>https://php.ru/forum/threads/szhatie-i-obrezanie-izobrazhenija-pered-zagruzkoj.85479/</link>
      <guid>https://php.ru/forum/threads/szhatie-i-obrezanie-izobrazhenija-pered-zagruzkoj.85479/</guid>
      <author>invalid@example.com (Davides)</author>
      <dc:creator>Davides</dc:creator>
      <content:encoded><![CDATA[Здравствуйте. Имеется такой вот код, который загружает изображения на сервер.<br />
<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// Все загруженные файлы помещаются в эту папку</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$uploaddir</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'../img/'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// Вытаскиваем необходимые данные</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'value'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// Получаем расширение файла</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$getMime</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'.'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$mime</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/end"><span style="color: #990000;">end</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$getMime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// Выделим данные</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">// Декодируем данные, закодированные алгоритмом MIME base64</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$encodedData</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'+'</span><span style="color: #339933;">,</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/szhatie-i-obrezanie-izobrazhenija-pered-zagruzkoj.85479/" class="internalLink">Сжатие и обрезание изображения перед загрузкой</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Замена текста картинкой.</title>
      <pubDate>Fri, 24 Apr 2020 21:46:38 +0000</pubDate>
      <link>https://php.ru/forum/threads/zamena-teksta-kartinkoj.69085/</link>
      <guid>https://php.ru/forum/threads/zamena-teksta-kartinkoj.69085/</guid>
      <author>invalid@example.com (Kukuruza_Xrusheva)</author>
      <dc:creator>Kukuruza_Xrusheva</dc:creator>
      <content:encoded><![CDATA[Уважаемые форумчане! Созрел насущный вопрос. И мне нужна помощь советом. <br />
Начну с начала.  Есть интернет магазин. В описании к товару &quot;копипаст&quot;. Тоесть я не придумывал уникального описания товара, а брал с других сайтов уже готовое описание такого же товара. <br />
И тут пришла беда. Сайт попал под фильтры из-за сплошного &quot;копипаста&quot;. <br />
<br />
<b>Вопрос: </b><br />
Можно ли преобразовать готовый текст на сайте средствами PHP или CSS или Явой. в картинку ?<br />
<br />
Смысл скрыть от поисковика сам текст. Замена...<br />
<br />
<a href="https://php.ru/forum/threads/zamena-teksta-kartinkoj.69085/" class="internalLink">Замена текста картинкой.</a>]]></content:encoded>
      <slash:comments>21</slash:comments>
    </item>
    <item>
      <title>Временное хранение изображений в base64 в БД</title>
      <pubDate>Fri, 17 Apr 2020 10:57:13 +0000</pubDate>
      <link>https://php.ru/forum/threads/vremennoe-xranenie-izobrazhenij-v-base64-v-bd.85253/</link>
      <guid>https://php.ru/forum/threads/vremennoe-xranenie-izobrazhenij-v-base64-v-bd.85253/</guid>
      <author>invalid@example.com (zhenia3003)</author>
      <dc:creator>zhenia3003</dc:creator>
      <content:encoded><![CDATA[Доброго времени суток! Подскажите, корректно ли хранить изображения в base64 в БД при добавлении пользователями новых постов на сайт. После проверки поста модератором изображения из base64 сохраняются в файлы.]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Изображение не может быть показано, так как содержит ошибки.</title>
      <pubDate>Fri, 29 Nov 2019 01:42:05 +0000</pubDate>
      <link>https://php.ru/forum/threads/izobrazhenie-ne-mozhet-byt-pokazano-tak-kak-soderzhit-oshibki.1462/</link>
      <guid>https://php.ru/forum/threads/izobrazhenie-ne-mozhet-byt-pokazano-tak-kak-soderzhit-oshibki.1462/</guid>
      <author>invalid@example.com (D.Lans)</author>
      <dc:creator>D.Lans</dc:creator>
      <content:encoded><![CDATA[Строка в которой подключается GD2, в php.ini раскомментирована.<br />
PHP 5.1.4.<br />
<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&lt;?php</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$image = ImageCreateFromPng(&quot;image.png&quot;);</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">header(&quot;Content-type: image/png&quot;);</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$imagePng($image);</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">imageDestroy($image);</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">?&gt;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
</ol></div>
</div>В чем причины такого заявления?<br />
Как его оспорить?]]></content:encoded>
      <slash:comments>15</slash:comments>
    </item>
    <item>
      <title>imagecreatefromwebp открывает не все webp изображения</title>
      <pubDate>Fri, 11 Oct 2019 21:43:03 +0000</pubDate>
      <link>https://php.ru/forum/threads/imagecreatefromwebp-otkryvaet-ne-vse-webp-izobrazhenija.80608/</link>
      <guid>https://php.ru/forum/threads/imagecreatefromwebp-otkryvaet-ne-vse-webp-izobrazhenija.80608/</guid>
      <author>invalid@example.com (Snake22)</author>
      <dc:creator>Snake22</dc:creator>
      <content:encoded><![CDATA[Здравствуйте. Суть проблемы следующая. Есть два сервера, на одном все вебп-изобржения обрабатываются нормально. На втором нет, возможно из-за различий версий библиотек.<br />
<br />
Собственно вот. Эта строчка кода с некоторыми webp-изображениями выдаёт ошибку<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$im_webp = imagecreatefromwebp($webp_file);</div></li>
</ol></div>
</div><b>Warning</b>: imagecreatefromwebp(): WebP decode: fail to decode input data<br />
<b>Warning</b>: imagecreatefromwebp(): &#039;test.webp&#039; is not a valid WEBP file in...<br />
<br />
При этом есть вебп файлы...<br />
<br />
<a href="https://php.ru/forum/threads/imagecreatefromwebp-otkryvaet-ne-vse-webp-izobrazhenija.80608/" class="internalLink">imagecreatefromwebp открывает не все webp изображения</a>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>Работа с картинкой или вирус?</title>
      <pubDate>Tue, 24 Sep 2019 04:22:41 +0000</pubDate>
      <link>https://php.ru/forum/threads/rabota-s-kartinkoj-ili-virus.80144/</link>
      <guid>https://php.ru/forum/threads/rabota-s-kartinkoj-ili-virus.80144/</guid>
      <author>invalid@example.com (Oldman1)</author>
      <dc:creator>Oldman1</dc:creator>
      <content:encoded><![CDATA[Антивирус ImunifyAV (ex. Revisium) на ocstore ругается на файл. Нашел полную копию кода здесь <a href="https://pastebin.com/sQGTJRuP" target="_blank" class="externalLink" rel="nofollow">https://pastebin.com/sQGTJRuP</a><br />
<br />
Посмотрите пж-та, это точно вирусня?<br />
Лежит в admin/controller/design/image.php<br />
<br />
Заранее спасибо!]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Не отображается текст функцией imagettftext()</title>
      <pubDate>Fri, 09 Aug 2019 20:28:39 +0000</pubDate>
      <link>https://php.ru/forum/threads/ne-otobrazhaetsja-tekst-funkciej-imagettftext.73904/</link>
      <guid>https://php.ru/forum/threads/ne-otobrazhaetsja-tekst-funkciej-imagettftext.73904/</guid>
      <author>invalid@example.com (Белов)</author>
      <dc:creator>Белов</dc:creator>
      <content:encoded><![CDATA[На локальном сервере работает:<br />


	<a href="https://php.ru/forum/attachments/3285/" target="_blank">Посмотреть вложение 3285</a>
	
<br />
при переносе на хост текст не отображается<br />


	<a href="https://php.ru/forum/attachments/3287/" target="_blank">Посмотреть вложение 3287</a>
	
<br />
&lt;?php<br />
    $im = imagecreatetruecolor(70,40);<br />
    $rand = mt_rand(1000,9999);<br />
    $c = imagecolorallocate($im,255,255,255);<br />
    $date = new DateTime();<br />
    $sec = mt_rand(-18,18);<br />
    $linenum = 10;<br />
    for ($i=0; $i&lt;$linenum; $i++)<br />
    {<br />
        $color = imagecolorallocate($im, rand(0, 150), rand(0, 100), rand(0, 150)); // Случайный цвет c изображения...<br />
<br />
<a href="https://php.ru/forum/threads/ne-otobrazhaetsja-tekst-funkciej-imagettftext.73904/" class="internalLink">Не отображается текст функцией imagettftext()</a>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
  </channel>
</rss>
