W
W
weranda2018-12-08 10:30:19
Images
weranda, 2018-12-08 10:30:19

Why can't I edit the image?

Greetings
Stumbled upon the image: https://st.motortrend.com/uploads/sites/10/2017/11...
It cannot be saved by dragging.
I can't open it in Photoshop, only re-saving it in another editor.
Why is this happening and how to do it too?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AngReload, 2018-12-08
@weranda

https://st.motortrend.com/uploads/sites/10/2017/11/2018-infiniti-q60-luxe-coupe-angular-front.png

Despite the fact that the url ends in png, the server, if it wants, can give at least a gif, at least a jpeg. Or even a web page will show. The ending .pngis for the convenience of users only.
So for Chrome and other browsers based on it, the server does not return png, but webp. WebP is a newer image format that compresses better. But not even all browsers support it, and even more so graphic editors.
In this case, the server determines by the presence in the request from the browser Accept: image/webpwhether webp is supported and issues it if yes, and jpg if not.
An easier way is to use the picture tag on the page:
<picture>
  <source srcset="img/awesomeWebPImage.webp" type="image/webp">
  <source srcset="img/creakyOldJPEG.jpg" type="image/jpeg"> 
  <img src="img/creakyOldJPEG.jpg" alt="Alt Text!">
</picture>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question