A
A
Arkady2012-07-04 13:51:49
Image processing
Arkady, 2012-07-04 13:51:49

How to choose the optimal image size?

Good time of the day.

There is a project whose bot is scurrying through sites, looking for images (desktop wallpapers) adding them to itself. Then this image can be downloaded by selecting the desired size.

When the bot finds an image, it selects the largest possible size and saves it to itself, so that the sizes are not standard, for example 8192x3072 - it is difficult to convert from this size to 1280x1024, half of the image will simply be lost.

How to find the right size (with more or less universal aspect ratio)?

//
Now there is such an idea: First, look for the largest sizes by popular aspect ratios 4:3, 16:9, if the sizes are not quite suitable, then just take the largest one, regardless of AR.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
Nikolai Turnaviotov, 2012-07-04
@foxmuldercp

And what about the copyrights to the pictures or is there a link to the original? maybe the owner is against your bot collecting pictures from his site?
Such behavior is fraught with consequences

E
eaa, 2012-07-04
@eaa

Collect everything you have - you never know what permission you need, now there are a lot of "non-standard" permissions, you never know who will need anything - and what's the point of limiting the size? Show all options with the ability to cut to the desired.

A
Alexey Prokhorov, 2012-07-04
@megahertz

You can prompt the user to select the aspect ratio before uploading, if the image does not match the specified ratio, show the crop dialog.

W
Wott, 2012-07-04
@Wott

don't oversimplify, different aspect ratios are different images. often wallpapers make something important go along the border, and it’s just that photos in normal resolution are cropped badly.

K
karenishe, 2012-07-04
@karenishe

It is necessary to collect everything to the maximum and store it on the server, then give the person the opportunity to choose from standard permissions, or specify the one that he needs. If you don't need to crop anything, just give a scaled image, if you need to crop, show html5 or flash cutter so that the user can cut it himself. Scaled images are best cached directly on the server if the project is large.

A
agmt, 2012-07-04
@agmt

I don't think that anyone other than yourself will be able to advise anything in this task, because there are parameters known only to you (the value of space, processor time, traffic). In addition, it is you who has the distribution of downloads by resolution and aspect ratio. For me personally, 16:12 and 16:9 are converted to 16:10 and look quite natural.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question