iipa Posted September 16, 2019 Share Posted September 16, 2019 Hi fellow developers! I have a basic image field on my page. I would like to force a specific aspect ratio when user wants to crop the image. Module apparently uses crop.js for cropping features, and I found some settings related to it in ProcessPageEditImageSelect.js: var cropSettings = { autoCrop: true, autoCropArea: 0.35, zoomable: false, rotatable: false, // etc ... }; I would like to change these settings, but obviously I don't want to do so straight in module code (especially because it is in wire). Question is: How can I refer to these settings somewhere safer? (For example I have admin.js where I already do some other stuff in admin pages located in site/templates/scripts) Link to comment Share on other sites More sharing options...
wbmnfktr Posted September 16, 2019 Share Posted September 16, 2019 Never tried it with the core module but Croppable Image 3 works really good and has some nice additional settings and features. Maybe worth a try. 2 1 Link to comment Share on other sites More sharing options...
teppo Posted October 15, 2019 Share Posted October 15, 2019 Hey @iipa – just a quick heads-up that I've moved this thread to the General Support area of the forum. Modules/Plugins area of the forum is dedicated for (third party) module support threads (of which there should be one per module), and this question is about a core module/feature ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now