1,926 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
36
views
Laravel + Imagick: Thumbnails return 0×0 images in browser despite valid 200 response
I’m building a Laravel + React (Inertia.js) application where users can upload files (PDFs, images, etc.).
For each file, I generate a thumbnail so I can display it in a gallery card (CardFile.jsx).
...
0
votes
0
answers
34
views
Timber towebp() slow with png files
I create a srcset for my images with this piece of code:
<source srcset="{% for size in [200, 400, 800, 1000, 2000, 3000, 4000] %}{{ image|towebp(100)|resize(size) }} {{ size }}w{{ loop.last ? ...
1
vote
1
answer
73
views
PHP imagick convert PDF with multiple pages to A4 PDF
I'm struggling converting multipage pdf files to A4 pdf files. I am using imagick to convert uploaded jpegs to A4 pdf files, but I just cannot simply resize multipage pdf files.
Anything I try to do I ...
0
votes
1
answer
122
views
Merging two images as one (GD and Imagick)
I am trying to merge two images as one for achieving preview on truck containers like this.
The above image shows still from a reference website.
I am trying to achieve same here for one of our ...
1
vote
0
answers
70
views
Performance Regression with Imagick between PHP 7.2 and 8.2
I'm noticing a significant performance difference when running the same Imagick script on PHP 7.2 versus PHP 8.2. Here are the results I’ve gathered:
PHP 7.2, ImageMagick 7.0.7, Imagick 3.44: 3.8 ...
0
votes
0
answers
110
views
Imagick "Unable to set image alpha channel" error when turning PDF into JPG
First of all, this all involves older versions of both PHP and Imagick, that we cannot update at the moment due to technical constraints.
In our project we preview PDF contents to users by splitting ...
0
votes
0
answers
63
views
Unwanted Halo Effect in an attempt to clip transparent layers
I am attempting to put two images together.
One goes on the bottom. It has no effects.
The second goes ontop. It should have the effect of multiply.
But when I put these images together like so
...
0
votes
0
answers
34
views
imagick wrong color profile for eps to jpg
wrong colors, these become e.g. high contrast green.
tried to use ghostscript to attach the colors, but then it leads to wrong canvas dimension.
// Function to generate thumbnail from EPS using ...
2
votes
0
answers
147
views
Ghostscript is not working with imagick error FailedToExecuteCommand
I have PHP Laravel script working with following configuration.
Laragon
Apache httpd-2.4.54-win64-VS16
PHP 8.3
Ghostscript 10.04.0
ImageMagick 7.1.0-18 Q16 x64
When I tried to convert pdf into image ...
1
vote
0
answers
57
views
Why am I getting 'Failed to decode QR code: An error occurred while processing some image(s)' in PHP with ImageMagick?
I am working on a PHP application that involves decoding QR codes using ImageMagick. However, I encountered the following error in my logs:
{"logtime":"2024年12月04日 14:19:45.955",&...
0
votes
0
answers
67
views
Imagick (PHP) is returning following error "no decode delegate for this image format `' @ error/blob.c/BlobToImage/361"
I know there are similar question on Stackoverflow that's already answered.
But It did not fix my bugs, so Please Let me ask here.
I'm trying to make a proxy in PHP.
My code is worked in my local ...
0
votes
1
answer
139
views
How to find out if WordPress is using GD or Imagick?
Wordpress is producing lower quality images when images are resized from Media -> Library -> Edit pages.
I've used following code in functions.php to force WordPress to use Imagick instead of GD....
1
vote
1
answer
78
views
How do I specify the PDF page size and orientation when converting image to PDF with PHP Imagick library?
I am converting an image to PDF in PHP. How do I get the image to be on an 8.5 x 11 inch portrait page? I can't seem to find a setting to do that. What I get is a PDF page that is the size of the ...
George's user avatar
- 1,032
0
votes
0
answers
59
views
PHP Imagick - Scale Image - output not satisfying
I'm trying to scale a png image. The top most is scaled by the browser (so on client side):
<img src="data:image/png;base64,{articleImage.fileContent}" style="max-width: 200px; max-...
1
vote
1
answer
135
views
Imagick throwing on any png file
I'm testing my thumbnaling system with Imagick implementation and formats jpg, webp work fine but with png it always throws:
"improper image header `\/tmp\/magick-fj49nThGt9uvW0CFbLJj7XGsqT7x30OC'...