javascript - Crop Cover Photo like Google Plus using js & PHP? -


i've seen few demos not google+ in google+ if upload cover photo made restrict minimum croppable area depend on uploaded image size , aspect ratio after can't make smaller. have idea how minimum width , height according below points.

  • first of aspect ratio of uploaded image user.
  • then minimum width , height in pixel allow croppable area after area user not able make small area cropping cover photo want restrict based on image size & ratio.

for more information please have google+ cover photo cropping style.

below few demos i'm looking for.

http://deepliquid.com/projects/jcrop/demos/tutorial5.html

http://picturecut.tuyoshi.com.br/

thanks in advance help!.

after long waiting applied logic , works me aspected.

var min_crop_width = (original_width / 100) * 83.5; // minimum percentage var min_crop_height = (min_crop_width / 5) * 1; // standard ratio... min_crop_width = (min_crop_height * 5) / 1; // standard ratio... 

thanks!


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -