Page 1 of 1
A little help with image in Summernote
Posted: Sat Jan 16, 2021 1:55 pm
by darkoracle
Hi
When I Upload Images via Plugins / File Manager then link in my post as follows:
./files/image_name
It works perfectly but when I use summer notes add an image button and select an image from my PC it shows in the post preview but not on the final post, all I get is the broken image link icon.
Any tips?
J
Re: A little help with image in Summernote
Posted: Sat Jan 16, 2021 3:34 pm
by Pablo
Maybe the image is too large?
Re: A little help with image in Summernote
Posted: Fri Aug 20, 2021 2:35 pm
by paul.maechler
I like using summernote as editor.
But is the maximum size for pictures ?
Even small pics with 150k are not working.
The page is simply not saving.
Which editor is better publishing pictures ?
Rgds
Paul
Re: A little help with image in Summernote
Posted: Fri Aug 20, 2021 2:52 pm
by Pablo
The maximum size of the image is determined by the browser and / or summernote.
Unfortunately, I do not have any control over this.
Other editors may have different specs.
Note that all editors are third party so they are provide "AS IS". Because it would take years of dedicated development just to create an editor like that.
Re: A little help with image in Summernote
Posted: Mon Aug 30, 2021 9:10 pm
by paul.maechler
Ok. Got it.
Tried your wwbEditor instead.
I can upload any picture. png or jpg. Even any size.
But more then 95% of all pictures (even very small ones) or are not saving when I push "Save".
I need this functionality urgently know for a custome app.
I don't care if a I cannot save 5 MB pics. But a 50 or 100k pictures must work.
It is a matter of SQL settings ?
How can I debug the "Save" procedure ?
Do you have any working example ?
Re: A little help with image in Summernote
Posted: Tue Aug 31, 2021 6:35 am
by Pablo
When using wwbEditor's insertImage, the image data will be embedded in the text (standard HTML functionality).
Even for small images this will create a lot of data.
The exact size limit is probably related to the size of 'content' field in the MySQL database which is by default a 'TEXT' field.
Changing it to LONGTEXT may help, but I have not tried this myself
More information:
https://dev.mysql.com/doc/refman/5.7/en ... ments.html
Re: A little help with image in Summernote
Posted: Tue Aug 31, 2021 8:58 am
by paul.maechler
That works like a charm ......
Thanks Pablo
Re: A little help with image in Summernote
Posted: Tue Aug 31, 2021 9:05 am
by Pablo
Thanks! That is useful to know!