Articles Tagged 'resize-images'

Mathematics: resize in proportion

ci viene chiesto di renderlo più piccolo del 20%! Given a large rectangular object w and high h we are asked to make it smaller by 20%! First of all, we decrease the width of 20%:

1
object.width object.width = - ((object.width * 20) / 100)

which

1
object.width object.width = - (object.width * 0.2)

which

1
object.width object.width = * (1-0.2)

Because of the height is exactly the same.

When there's a third object, that is, there has been given the percentage to be removed from our object, but by a third party, we have:

1
2
3
rate = object.width / object.height
object.width terzo.width = * (1-0.2)
object.height = object.width / rate

Continued ...

Dynamic intelligent image resizing

Two researchers at Adobe , Dr. Ariel Shamir, Shai Avidan and Dr., have developed a unique algorithm for intelligent resizing of images. Particularly impressive (see video below) is the ability to obscure and completely change an image, thanks to a "resize" extremely sophisticated and selective. In other words, this technique allows you to resize an image in a non-linear. Some areas of the image, then, are kept in scale provides effective really curious.

Continued ...


Stop SOPA