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

61
Views
How to use user agent request header to optimise images depending on device

I am building an application that serves images of varying width and height depending on what query parameters are passed.

For example image.jpg?w=150&h=150 would return an image of with a width of 150 and a height of 150.

Is it possible to use user agent request header to serve images depending on the header?

So could I check for a user agent request header and if it was for mobile for example, could I return an optimised image?

How could I achieve conditionally rendering the correct query paremeters to the image src?

about 4 years ago · Juan Pablo Isaza
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!