Forum

Thread tagged as: Question, Problem
Drew McLellan

Drew McLellan 2638 points
Perch Support

What are the pixel dimensions of the image you're uploading?

The image is 458 × 255

https://digitaleducation.education/markup/index.html

It is the black and white image, top left.

Is there a reason that this is not working?

Drew McLellan

Drew McLellan 2638 points
Perch Support

width="458" density="2" and width="458" density="3" can't be generated as the source image is only 458px.

It still does not show up on the page!

<img src="<perch:content id="home_image" type="image" width="458" label="Image" />" alt="<perch:content type="text" id="alt" label="Description " required="true" help="Description of this image" title="true " />" srcset="<perch:content id="image" type="image" width="916" label="Image" density="2" /> 2x, <perch:content id="image" type="image" width="1374" label="Image" density="3" /> 3x">
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is the source image still the same size? Perch will not upscale images.

Yes, its the same size. Meaning you have to supply (upload to assets) the largest size image you want and Perch down scales the image size?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes - Perch can't make a high resolution image from a low resolution one.

Well that worked, but I had to upload 2 images different sizes which is not what I read here, which is what I wanted?

In this case we want our content editors to only upload one image. Perch will then create three images - a standard one plus two higher DPI images.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Make sure all the image tags use the same ID - then you'll just upload one image.