Reply To: I have a solution to shrink image sizes uploaded with the Activity Plus plugin
Another solution which is easier and works perfect (but you lose the lightbox feature)
1) Increase the thumbnail size by adding this line to your wp-config file: define(‘BPFB_THUMBNAIL_IMAGE_SIZE’, ‘640×640’);
(I’ve chosen 640×640 for the maximum thumbnail size, since lightbox is lost)
2) Go to your plugins\buddypress-activity-plus\lib\forms folder and edit the images_tag_template.php file and delete this section: ” class=”<?php echo $use_thickbox; ?>” rel=”<?php echo $rel;?>” <?php echo $target; ?> >
(This will restrict opening your original uploaded image in a lightbox when you click on it – this is important since you will be deleting the original in the next step)
3) Lastly, setup a cron, maybe once a week, to delete all files over a certain size in the bpfb folder (this is the folder where all the uploaded & thumbnail images are stored)
I’ve set my cron to delete all images over 150kb. Here is the command line for my directory:
find public_html/wp-content/uploads/bpfb/* -size +153600c -type f -delete
(note: 153600c is bits, which is 150kb)