1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MG 1.1 Automatic resizing

Discussion in 'Media Gallery Support' started by gunnar, Jan 11, 2016.

  1. gunnar

    gunnar Active Member

    I would be interested in removing the upload limits on size for users, but rather have a automatic resizing when the image have been added is this possible?
     
  2. Martok

    Martok Well-Known Member

    Yes it is.

    In either XFMG Image options or in the XFMG Image Media Quotas permissions (depending on whether you are using global quotas or user group based ones), set the Maximum Dimensions for images to something appropriate (e.g. 2000 x 2000). Also set the max file upload to unlimited. When a user uploads an image, the file size won't matter but it will be automatically resized to fit within the dimensions you specified, thus also reducing the uploaded file size at the same time.
     
    Chris D likes this.
  3. gunnar

    gunnar Active Member

    Great, thank you!
    So if I set the user group permissions to 0 I can go and set XFMG image options and it will work for all images?
    I want to limit space allowance based on group belonging at the moment.

    If I enable global quotas it will override the group settings?
    I wouldn't mind if it was a global setting for most groups, with some extended allowances for admins and moderators..
     
  4. gunnar

    gunnar Active Member

    It doesnt allow me this.. Should i set it to a large number instead? like 5MB?
    I'm using 3000 px X 3000 px for maximum dimensions.
     
  5. Martok

    Martok Well-Known Member

    Global settings apply to all users, whereas user group permissions apply to each user group. You need to choose which one you prefer to work with. Personally I prefer user group permissions because I can restrict for the Registered user group but allow for other groups.

    You've probably set something incorrectly. Give more details about your setup.
     
    Chris D likes this.
  6. gunnar

    gunnar Active Member

    It seems you can only set unlimited file size in group permissions, so I will stay with your recommended way and use group permissions. Thanks for your help!!!
     
    Martok likes this.
  7. gunnar

    gunnar Active Member

    So like this?
    Screen Shot 2016-01-11 at 10.13.20.jpg
     
  8. gunnar

    gunnar Active Member

    One more question, If I set the default group that everyone join to the settings above, I can leave following group updates at 0? And just give them more storage space if I wish?
    Screen Shot 2016-01-11 at 10.16.08.jpg
     
  9. Martok

    Martok Well-Known Member

    Those settings should be fine. You could set unlimited as the file upload in user group permissions (you're correct, there is no unlimited setting in global settings). In reality you're likely to to be limited anyway to upload_max_filesize/post_max_size in PHP (you can check your settings for this in /admin.php?tools/phpinfo.php on your site) though you/your host can likely increase this for you if it is too low.

    The default group that everyone should have as their primary user group is the Registered group. If you are giving the same permissions to everyone, you're just as well using the Global options for XFMG though it doesn't matter if you are using the user group permissions. If you are going to vary some permissions (such as storage that you have mentioned) then user group permissions is the way to go.

    Yes, you can leave the settings for all other user groups to 0 as the highest numerical value across all user groups that someone is a member of will apply. You only need to change values in other user groups where you want them to have something different.
     
    Chris D likes this.
  10. gunnar

    gunnar Active Member

    Superb! Thanks a lot!
     
  11. gunnar

    gunnar Active Member

    Hello
    Some members seem to have problems uploading images as there are some albums left empty. I this the correct settings @Martok ?
    I want all images they upload to be resized to 1800px on the long side.

    Then on the next member group can I leave it like this?
    Screen Shot 2016-04-24 at 12.29.35.jpg

    Screen Shot 2016-04-24 at 12.30.24.jpg Many thanks for your help!
     
  12. Martok

    Martok Well-Known Member

    For dimensions, those setting (1800px for both) are correct.

    For other member group settings, you need to set those to 0 if they are also members of the other user group (which I'm assuming is the Registered user group which would be their primary user group). For numerical permissions it always takes the highest value from all user groups that a member is in as the final value). So with 1800 set in the first group and 0 in the other secondary user groups the final value is 1800 (whereas if you set unlimited in the other groups the final value is unlimited which is probably not what you want).
     
  13. gunnar

    gunnar Active Member

    Thank you, this leaves me wondering why some users have problems adding images... :/
     
  14. Martok

    Martok Well-Known Member

    What are the issues they are having? You'll need to give specific details.
     
  15. gunnar

    gunnar Active Member

    The users didn't specify and I couldn't see any errors.. Maybe it's just ignorance on the users end.. ;)
     

Share This Page