Answer the question
In order to leave comments, you need to log in
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
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
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.
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.
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.
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.
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 questionAsk a Question
731 491 924 answers to any question