-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with resizing, cropping, and rotating. #1398
Comments
@StudioJunkyard This looks like a client side of trouble. Please check with plain elfinder.html, or elfinder.src.html. |
Having a look at the generated dialog content for resizing in Chrome's Dev Tools. The Resize, Crop and Rotate Radio Input's have disabled attributes by default. Am I right in assuming that if the dependency requirement's are met (i.e. installed system libraries to perform those actions) then elFinder would enable those radio buttons. I'm also thinking that may be why even the resize isn't working as elFinder isn't getting back expected results to allow resizing to work. |
Not sure if this helps you track down the issue, this is what's sent when the resize is requested to elFinder: This is the response: Is it me? I entered 300 for the width, the height was auto generated (not an issue). Shouldn't there also be sent the width, and height in the url? EDIT: Issue is also persistent in Firefox. |
Did you check with elfinder.html or elfinder.src.html? And, Can you show me your screen shot? |
The elfinder.html after modifying the connector to access the correct folder works. |
The more I look at the source, the more I think it's got more to do with how the dialog and elements have been implemented. Anybody should be able to override the style of the elements, without interfering with the functionality. Plus, I've gone through the full and minified, and theme.css to try and determine what bootstrap styles are interfering, can't find any direct styling for the radio button and it's associated label elements. |
I just tried a little experiment, I added all the classes and javascript to the elfinder.html file so I could remove each reference until I find which file has whatever is affecting the dialog adversely. At this stage I haven't removed any of the added classes. However, when I removed the bootstrap.js, everything works fine again. So something with Bootstrap's JS is interfering with elFinder's script. Exactly what, I don't know yet. |
Ok, I came across issue #740 and added: var btn = $.fn.button.noConflict(); // reverts $.fn.button to jqueryui btn
$.fn.btn = btn; // assigns bootstrap button functionality to $.fn.btn Which fixes it, completely. Bloody Bootstrap. |
Ah! I got it. Congratulations! |
Cheers for your help. Two of my client's are really happy that it works now. Now to fix the bootstrap theme for elF. |
As has been mentioned in issue #1380 a similar issue is persistent with my installation of elFinder.
So far, I've checked that GD2 is installed, installed image-magick, added
'imgLib'=>'gd'
to my connector options as per @nao-pon suggestion on getting thumbnails to work as mention in another issue. Thumbnails are created when images are uploaded, so that issue is gone.Issue now, is when wishing to edit an image, the dialog opens, and all the options except the width, height, and quality fields are disabled.
The width and height are editable, but when clicking apply, the confirmation dialog works, but when applied another dialog is displayed with 'Invalid parameters for command "resize".'.
I also update to the nightly build as per @nao-pon suggestion from issue #1380.
Below is the Connector File, Nothing else except the CSS has been edited, but that shouldn't affect any of the script functionality I would assume.
This happens on a local machine, as well as a live server.
Local Machine is Linux Mint, Apache, PHP 5.9.4
Server is CentOS, Apache, PHP 5.9.4
The text was updated successfully, but these errors were encountered: