Does anyone know how to edit the ElFinder presets for image cropping in FRED?
I don’t think this is possible (without changing a source file).
In theory you can define presets in the options when elfinder is called, but I don’t see a way to do this without changing the Fred JS-file:
You would have to add the presets to the variable commandOptions
(something like this)
commandsOptions['resize'] = {
presetSize : [
[111, 111],
[222, 222]
]
};
before it gets added to the options object here:
It’s good to know that it might require some tweaks to the source file. If anyone has experience with modifying the Fred JS file, it would be great to hear how they approached it. I’m sure others would appreciate any tips on setting up those presets without too much hassle.