Questions tagged [imagejpeg]
41 questions
9
votes
2 answers
Specify a cache validator for images created by imagejpeg/imagepng functions
All we know we can specify a cache validator for images by adding following lines to .htaccess file:
ExpiresActive On
ExpiresDefault "access plus 1 year"
.. and ..
…

Iman
- 533
- 2
- 8
- 23
5
votes
1 answer
Display raw image content-type in vue.js
I am retrieving an image from a REST API via an HTTP GET with a request body.
I've managed to check the returned content via this test using node.js and chai.js:
expect(res).to.have.header('Content-Type', 'image/jpeg');
…

TPPZ
- 4,447
- 10
- 61
- 106
3
votes
1 answer
Save imagejpeg() to s3
i have a problem with imagejpeg(). I know how how to save/upload image to s3. My problem now. The image was resize using imagejpeg but this was only save to local directory. I want to save it to s3. I'm using laravel. Here's my code. Any help is…

Vergel Andus Aranas
- 41
- 1
- 3
2
votes
1 answer
Logic Apps and Outlook embedded images
I want to copy embedded images from an outlook email to my blob storage. I have a step to run a For Each over the email attachments (the embedded images are recognized as attachments). But the when I look at the raw input for the email message,…

suburbanscripter
- 23
- 2
2
votes
2 answers
PHP imagejpeg() returns black image when using bigger resolution but works fine with lower resolution images
on my website you can upload images and I intend to allow at least 16k resolution for each upload. When displaying the image on the website I want to use a thumbnail image.
To create the thumbnail image I'm using the php code below:

Miger
- 1,175
- 1
- 12
- 33
2
votes
1 answer
Handle image/jpeg response and display on UI by base64 encode in NodeJS
Using NodeJs request module, I made a request to the server and receive a response like that:
response.body = "����JFIF��C..."
response.headers["content-type"] = image/jpeg
I try to convert it to base64 encode with below code:
let imageData =…

nnson1610
- 117
- 2
- 8
2
votes
2 answers
JS-Convert an Image object to a jpeg file
So, I have a user input which serve to upload pictures. This is a simple example:
function handleImage(e){
var reader = new FileReader();
reader.onload = function(event){
var img = new Image();
img.onload =…

SphynxTech
- 1,799
- 2
- 18
- 38
1
vote
1 answer
Parse variable value to imagefill color in php
im creating a image generator with php and i have a problem.
I have a form that asks for color that's already defined

Cesar Medrano
- 11
- 2
1
vote
0 answers
saving cropped image with imagejpeg() for second time with same name
I am approacching humbly to php/javascript code and I got started with jcrop function downloaded

ddame
- 11
- 4
1
vote
2 answers
Force imagejpeg to .png
I have a doubt. Is there a problem if I force imagejpeg to save a .png file?
Like in this example:
imagejpeg($img,$_SERVER['DOCUMENT_ROOT']."/test.png",80);
I want to use this method because I can use the $quality filter.
In this method I have a…

paulv
- 83
- 2
- 12
1
vote
1 answer
gd-text: no text is added
I am using gd-text to add a text from Database to an Image.
Both (image/text) are generated by an external class.
Heres the code:

Sili
- 175
- 4
- 14
1
vote
1 answer
Create image and rename is not working in PHP
I need to create process for making images into different dimensions and move them into repective folder.The below code is working for some images and not for some.Some images are being renamed in subfolder and some are not.some images are being…

piya
- 205
- 1
- 6
- 15
0
votes
1 answer
Make a new entry in a new table ImageJ
Imagej's table will not save the previous entry, rather overwrites the current row with the new info provided from the array's. Is their anyway to allow it to make a new row for every new set of data acquired?
//// Create…

zZz ZzZ
- 1
- 1
0
votes
0 answers
Php CURLFile equivalent in Node js
I'm trying to send a post request to an external api where one of the parameters needs to be of 'multipart/form-data' encoding, specifically with type image/jpeg. In php this works with CURLFile
new CURLFile($file, 'image/jpeg');
Is there an…

fsdeveloper
- 31
- 7
0
votes
0 answers
Symfony 6 - Failed to open stream: Permission denied
My local environnement is Symfony 6.1, PHP 8.1.4, Xampp.. on windows 10.
I have some uploaded pictures in the folder "public/uploads", I made a function to manipulate some of these pictures (resizing).
All works fine until "imagejpeg()", it returns…

anso
- 3
- 3