4 ms·
I must admit this baffles me a little. Width and heights are measured in pixels. The number of pixels of an image is width x height (eg a raw image 256x256 mean
by axelMI 1y ago
I must admit this baffles me a little. Width and heights are measured in pixels.
The number of pixels of an image is width x height (eg a raw image 256x256 means it has 256*256 = 65.536 pixels = 262.144 bytes - if RGBA8). I cannot reduce its pixels and keep the same width and height or viceversa.
I can
a) reduce the quality of an image with a lossy compression (in download if you select jpg you can reduce the quality which will in turn reduce the file size)
b) scale an image when displayed in a browser (canvas.style.width > canvas.width) but the underlying image will still be canvas.width
Maybe I'm missing something
- sjsdaiuasgdia 1y agoI assume they meant aspect ratio instead of dimensions.
- axelMI 1y agooh, in that case it's enough to go in the crop section, select "pic" to keep the current "picture" aspect ratio and resize the crop box
- munksbeer 1y agoApologies, by dimensions, I did mean aspect ratio. All I mean is keep the same image, but reduce the number of pixels, and lose some clarity, to reduce the size of the file. Your suggestion above doesn't work. Try it. It keeps the picture aspect ratio, but it crops the picture. I don't want to crop it, I want to shrink the number of pixels but keep the same image (with loss of clarity because reducing pixels).
- axelMI 1y agoMhh. Maybe if you can show me an editor/app that does what you require will help me figure out how it works and replicate it
- sjsdaiuasgdia 1y agoMS Paint, Resize/Skew option. Ctrl-W is the hotkey. It allows you to resize either in terms of pixel count or percentage. The percentage approach is very nice for just putting 50 in both horizontal and vertical fields and getting an image half as large in both dimensions, but showing the same image (with reduced quality, because fewer pixels) and at the same aspect ratio.
- axelMI 1y agodone! added in the "composition" menu and fully integrated in the workflow I preferred just having an input with the correct pixels rather than % (to keep UI clean) but you'll get the same result