Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

341
Views
aws lambda:Large sized image upload and resizing in php

We are planning to migrate one of our image uploading and resizing system into AWS cloud.

Proposed solution

1.User upload files into AWS s3.

  1. S3 upload Invokes a lambda function in AWS lambda which will resize into a specified size(say 250*250) and put it into another s3 bucket.

    we have an option that user can able to see the resized image and approve button.

Since the upload image and resizing are two separate entities there is no way to identify image cropped is success or failed.

lambda function

 function cropImage(objectKey){

    //do resize here 
    if(success){
      //need to the objectKey in the php function
     }
    
   }

So is there any way to communicate from the aws lambda function to php ??

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

There is an approach we use for our system. Users upload their files through UI or an extension to our system. The system handles the file and uploads it to S3. After the file is uploaded the system calls to AWS Lambda, passing meta information, such as the API endpoint where to return the results. We resize each image, collect the data and send a JSON back to the endpoint. Of course it's a bit more complicated than just delegate whole work to AWS but it's a dynamic approach, that allows you to run your system from any server with a public IP.

If there is just one server, why not keep the configs of the server right on Lambda. There are Env vars available to set. In this case you need either an endpoint or predetermined naming pattern for all resized images.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!