Change Crop Ratio

Elite
  • 39 points
    Starting to get into this DEV thing
    I'm new here
    wpkitchen

    Member  —  14th December 2011         

    The Avatars plugin forces a square Crop Ratio.

    this is determined by line 384 in the file avatars.php that reads:

    ratioDim: { x: 128, y: 128 },

    There is no settings that allow you to change this from the admin, and as the values are hardcoded and without a filter, there is no way to prgramatically change it without hacking the plug-in files.

    I would very much like to suggest, if the author could add:

    A filter for this ratio and make it honor the dimensions set in the media settings for thumbnails as a starting point.

    This would greatly enhance the waz this plug-in integrates with wordPress as a whole.