craftsmancoding / assetmanager

Asset Manager for MODX Revolution
36 stars 15 forks source link

resize with force aspect ration and zoom crob/phpthumbsof #39

Open navtsi opened 9 years ago

navtsi commented 9 years ago

For bxSlider I want to resize images to a fixed size with different aspect ration than original image. I tried to combine Assets.url and Asset.id with phpthumbsup/phpthumbsof but it doest work. is there a possibility to use phpthumbsof instead of resize? Perhaps it would be an idea to integrate force aspect ratio and zoom crob as options.

fireproofsocks commented 9 years ago

You could use the id field to generate unique numbers, but if it needs to begin with 0 and progress sequentially, I'd have to edit model/Snippet.php.

The biggest roadblock right now is that the MODX package manager keeps rejecting the updates, so I haven't been able to release the new version of this officially.

It's unlikely that I will ever offer an interface that matches phpthumbs exactly, but the feature request #14 would handle all of that in a more elegant interface.