Yesterday evening, instead of going to bed at a normal time, I took two hours to improve the picture upload of imcdb
(and so this morning I am tired
)
Here is what's new:
- maximum width increased to 960 pixels
- maximum height decreased to 498 pixels
Why decrease the maximum height? Heights above 500 pixels were used only for 4:3 images, and these are most of the time with a lower quality due to age of movies or source of movie (tv). So reducing these to 662x498 does not lose details. Originally the images were limited like that, I am not sure of why we increased that at a point.
And about the increased width, please note that this is
only for HD pictures, so movies coming from HD trailers, blu-ray, mkv/h264, etc.
Please do not upload DVD pictures higher than 720 pixels wide, as that is the original picture size on the disc. I know that some programs make the captures in higher sizes, but they just enlarge the original picture actually.
Typical dimensions for DVD-pictures: 662 x 498 for 4:3, 720 x 390 for 1.85, 720 x 306 for 2.35.
Typical dimensions for HD-pictures: 920 x 498 for 1.85, 960 x 408 for 2.35.
Another change: the maximum picture size. It is not limited to 80 KB anymore. It is calculated according to picture width and height.
There is no reason why a tiny 320x200 picture would be allowed to weight 60 KB where a HD picture should be so much limited.
Now the maximum size is computed as such: width x height x 0.25 = size in bytes. If you compress pictures to 80% quality it should stay much below these limits. I checked with few of G-MANN's pictures (as he said he compressed a little less his pictures), they seem to still stay under the limit, so I guess it won't be a problem for anyone.
And the most useful feature: automatic recompress/resize.
This is of course optional. It will be especially useful for processing contributions (next step is letting users uploading contributions themselves, to be validated by admins later).
On the upload page there is a "resize/recompress" checkbox. If you enable it, the picture will be resaved to JPEG at 80% quality. This allows to easily process PNG pictures as well as the too-big pictures.
In addition of that, there are also three fields allowing to change pictures dimensions. It can be used to resize them if they are too big, or to fix ratio.
Resize/compression options are remembered in the session. this means that if you upload multiple pictures for a movie, it will keep the options, but these options will vanish when you close all browser windows or if you do not visit a page of the site for few minutes (same as the login if you did not enable the "auto login" option).
As it is possible to paste a picture URL instead of browsing for a file, this can also be used to easily fix ratio of pictures already be uploaded. Note that this has to be used only when "we" do not have the original picture: since it implies a recompression of the picture, there is always a small quality loss.