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…
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,…
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