Deploying to readthedocs from @ chillerlan/php-qrcode@376c972de0 🚀

This commit is contained in:
codemasher
2025-05-01 14:13:27 +00:00
parent 2007ae519d
commit 782ebe76f1
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -579,8 +579,8 @@ This method is used internally when a data mode is invoked, but it can come in h
<section id="return-the-image-resource">
<h3>Return the image resource<a class="headerlink" href="#return-the-image-resource" title="Link to this heading"></a></h3>
<p>In some cases you might want to modify the QR image after creation (without crating a custom output class), in which case you want the internal image resource rather than the final output.</p>
<div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="nv">$options</span><span class="o">-&gt;</span><span class="na">outputType</span> <span class="o">=</span> <span class="nx">QROutputInterface</span><span class="o">::</span><span class="na">IMAGICK</span><span class="p">;</span>
<span class="nv">$options</span><span class="o">-&gt;</span><span class="na">returnResource</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span>
<div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="nv">$options</span><span class="o">-&gt;</span><span class="na">outputInterface</span> <span class="o">=</span> <span class="nx">QRImagick</span><span class="o">::</span><span class="na">class</span><span class="p">;</span>
<span class="nv">$options</span><span class="o">-&gt;</span><span class="na">returnResource</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span>
<span class="sd">/** @var Imagick $imagick */</span>
<span class="nv">$imagick</span> <span class="o">=</span> <span class="nv">$qrcode</span><span class="o">-&gt;</span><span class="na">render</span><span class="p">(</span><span class="nv">$data</span><span class="p">);</span>
+2 -2
View File
@@ -252,8 +252,8 @@ echo $qrcode->render($data);
In some cases you might want to modify the QR image after creation (without crating a custom output class), in which case you want the internal image resource rather than the final output.
```php
$options->outputType = QROutputInterface::IMAGICK;
$options->returnResource = true;
$options->outputInterface = QRImagick::class;
$options->returnResource = true;
/** @var Imagick $imagick */
$imagick = $qrcode->render($data);
+1 -1
View File
@@ -359,7 +359,7 @@
<section id="chillerlan-php-qrcode-manual">
<h1>chillerlan PHP-QRCode Manual<a class="headerlink" href="#chillerlan-php-qrcode-manual" title="Link to this heading"></a></h1>
<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a> [main]. Updated on Apr 01, 2025.</p>
<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a> [main]. Updated on May 01, 2025.</p>
<p>The phpDocumentor API documentation can be found at <a class="reference external" href="https://chillerlan.github.io/php-qrcode/">chillerlan.github.io/php-qrcode</a>.</p>
<p>This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.</p>
<div class="toctree-wrapper compound">
+1 -1
View File
File diff suppressed because one or more lines are too long