php - HTML dynamic cropping -
php - HTML dynamic cropping -
i'm having problem showing images in table.
the images have different aspect ratios. different aspect ratios of images create table of images cluttered.
to solve crop part needs cropping have image square. have scaling downwards php script.
the tricky part can utilize html, css , php serverside, else not supported.
so there way can dynamically, without knowing size of image crop square?
have div specified width
, height
(the size of desired square), it's background-image
set image of unknown size centered. seem image "cropped", meaning everyting outside of div's size not visible.
php javascript html5 css3
Comments
Post a Comment