Hello,
I'm using CKeditor and CKfinder for my sites.
My users often upload big images (say 1600x1600) and then shrink the size (say 250x250) for use in their editor.
Is there a way for me to force CKEditor/Finder to shrink the image based on the resize that the user uploads? By default, it seems the CKEditor will just adjust the height/width attribute of the image tag. If I could get it to resample the image, though, it would dramatically speed up load times.
Thanks.
I'm using CKeditor and CKfinder for my sites.
My users often upload big images (say 1600x1600) and then shrink the size (say 250x250) for use in their editor.
Is there a way for me to force CKEditor/Finder to shrink the image based on the resize that the user uploads? By default, it seems the CKEditor will just adjust the height/width attribute of the image tag. If I could get it to resample the image, though, it would dramatically speed up load times.
Thanks.
Re: Image Compression After Resize
Other people have used some extra code that checks the images before saving the data and replace the URL of those that have been resized with a new URL that tells the server to provide an automatically resized version. You can try to search the forums for such solution or create one of your own.
Re: Image Compression After Resize
Can you point me to such code in the CKEditor forums? I'm having a hard time locating it.
Re: Image Compression After Resize
Re: Image Compression After Resize
As for scaling/ resizing images, see the CKFinder Developer's Guide articles like http://docs.cksource.com/CKFinder_2.x/D ... es#Scaling for PHP.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!