Avatar

imagecopyresampled() (Features)

by Alfie ⌂, Vienna, Austria, Saturday, June 01, 2013, 14:42 (3953 days ago)

Hi,

currently an image is resized if

  • at least one dimension is larger then stated in the forum’s settings and/or
  • the filesize is larger then stated in the settings.

This has a drawback if an image is within the dimension limits but the file size is too large.
Example: max dimension 640px, max filesize 100KB.
If an image is 300px wide and its filesize is 101KB it will be upscaled to 640px – which might look awful. Does anybody have an idea how to avoid this, i.e., either reducing the quality while keeping the dimensions or downscaling to match the max filesize?

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)


Complete thread:

 RSS Feed of thread