How to not display original photo (4.5 MB) but download and show only medium size.?
podporujeme opened this issue · comments
Hi, the only way to do it so far is to privately upload the media. We surely need to offer a way to disable large image display: a possible way is to shrink resolution like WordPress does when generating image with specific sizes (thumbnail, medium, large. etc.
Thanks for sharing this point.
@imath for this plugin u can automatic resize image for max resolution 800px width... buddypress is "social network" People dont need view large photos.
Ha, we can never assume we know how a plugin is going to be used. Users will always find a novel way to use something that surprises us as devs (and sometimes delights us, too). :D
I promise that some users will want to use it as a photo sharing repository and will want to store high-res images.
I agree with @dcavins I believe the best way is to generate a shrinked image for preview and the original one for download.
Yes that would be great.
@imath Just putting in my vote for this too. If we're able to control this through constants, like in BuddyPress, that would be awesome!
An example could be:
define ( 'BP_ATTACHMENTS_THUMB_WIDTH', 350 );
define ( 'BP_ATTACHMENTS_THUMB_HEIGHT', 400 );
define ( 'BP_ATTACHMENTS_FULL_WIDTH', 700 );
define ( 'BP_ATTACHMENTS_FULL_HEIGHT', 800 );
define ( 'BP_ATTACHMENTS_ORIGINAL_MAX_WIDTH', 1024 );
define ('BP_ATTACHMENTS_ORIGINAL_MAX_FILESIZE', 1024 );
@bclaim Hello, if i input this code to php snippet, it will work? Or i need some modification?