Ana DEV
Ana DEV

Reputation: 1030

How to crop the image created with <img> tag from top and bottom with percentage

I have a slider with images created with <img> tag and now wanted to crop them easily from top and bottom with the percentage number. Is that possible in some way with css or js?

Upvotes: 1

Views: 109

Answers (1)

javirs
javirs

Reputation: 1100

if you want to actually crop the file (and save croped file) you should go for someething like Jqmagick (Imagemagick) http://jqmagick.imagemagick.org/

If you just want to show the upper part (or lower part) you can play with negative margins and so on.

Please give more details :)

Upvotes: 2

Related Questions