Forums  ›  General  ›  General discussions
 

Tinymce and photos

Thanks.

 

Is there some way that photos can be automatically reduced by Tinymce when they're uploaded? I don't want to take away the upload feature.

Not at this time. It has to be handled by the post acceptor script for the tinymce uploads. I created a issue for it in github. https://github.com/CheetahWSB/Cheetah/issues/225

I'll have to look into the other issues you reported. I'll see if there is a way i can deal with those as well.

 

There are more problems with the Tinymce image upload the further I delve.  I went to the post and successfully deleted the image, however the original 4meg image is still on the server. It looks like I have to delete unused images manually, but this causes so many headaches because I don't know which images are being used.

Secondly, I tried uploading another image to see if Tinymce offered some way of controlling what happened to the original. I dragged an image to the uploader, found nothing and cancelled the upload. Whoops! Despite aborting,  that unused image is now on my server!

The settings for the photos module allows you to set the size of photos.  The default setting allows for 3 meg photos to be uploaded, but these are automatically reduced to the default size (750 x 750?) This ends up with a photo of around 80 - 100 kb, which makes for faster loading on slower internet services.

I just uploaded a 4 meg photo in Modzzz' blogs using Tinymce and reduced it to 700 high, hoping that the photo would be resized by the module. The image does appear on the page as a 700  high photo, but when I downloaded it, the photo was still 4 meg. When I looked in the media folder, the image was also 4 meg and there's no resized photo. Tinymce obviously renders the photo for viewing and nothing else. I assume this will be the case throughout the site where members upload photos using Tinymce.  I always reduce my photos, but most site members don't. They upload massive photos without a care in the world, but I'm using a server with limited capacity and I can't allow it.

Is there some way that photos can be automatically reduced by Tinymce when they're uploaded? I don't want to take away the upload feature.

As an aside, our members should be aware that any module other than the Photos module may not reduce the size of the upload. I spoke to Anton about this a few years ago and he agreed that it was a problem, which he fixed on the AQB modules I was using.