News:

Create A Forum Installed

Author Topic: Image resize  (Read 702 times)

0 Members and 1 Guest are viewing this topic.

Offline StefanN

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • View Profile

Badges: (View All)
Fifth year Anniversary Fourth year Anniversary Level 3
Image resize
« on: October 30, 2022, 05:30:59 am »
Hi


Please add a mod such as https://custom.simplemachines.org/index.php?mod=2206 to resize images on upload.


Mobile phone create huge images and most users don’t, or don’t know how to, resize images before upload.


Thanks

Share on Facebook Share on Twitter


Offline animaniactoo

  • Newbie
  • *
  • Posts: 41
  • Karma: 0
    • View Profile

Badges: (View All)
Second year Anniversary Level 3 Karma Good
Re: Image resize
« Reply #1 on: October 30, 2022, 04:38:02 pm »
Seconding this as a useful thing if possible. We have just had our second round of "how can you shrink your image" discussion, even with a thread dedicated to it in the "tech info" section of our forum.

Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: Image resize
« Reply #2 on: November 01, 2022, 04:41:32 am »
Added but not tested.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/
Love Love x 1 View List

Offline StefanN

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • View Profile

Badges: (View All)
Fifth year Anniversary Fourth year Anniversary Level 3
Re: Image resize
« Reply #3 on: November 01, 2022, 10:22:50 am »
Thanks!   How does it work, is it configurable and when will it be live? 

Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: Image resize
« Reply #4 on: November 01, 2022, 12:17:11 pm »
It is live now. Under Admin -> Attachment and Avatars -> Attachment Settings

You can set the max height/width of an attachment.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline StefanN

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • View Profile

Badges: (View All)
Fifth year Anniversary Fourth year Anniversary Level 3
Re: Image resize
« Reply #5 on: November 01, 2022, 01:00:28 pm »
Fantastic, thank you!


Does the resize software maintain transparency?


I've just tried uploading an oversize image and it has reduced its size correctly (which is excellent!).   However the png had transparency and it seems to have lost that or added a black background.  For reference I resized the image externally and loaded on this page:  http://cyclekartsgb.createaforum.com/announcements/forum-layout-changes/msg7840/#msg7840.


The first image was auto-resized, the second I resized and uploaded.   The thumbnails both have the same issue, but if you download the images, you'll see the second one is correctly coloured.


The third image was auto-resized but the original was saved without transparency - its works correctly.
The fourth image was a jpeg that was auto-resized on upload - again works correctly.


Now, most of the time people load photos so it shouldn't be a major issue, but thought I'd mention it.


Thanks again!




Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: Image resize
« Reply #6 on: November 01, 2022, 01:45:47 pm »
I don't believe it keeps transparency. Same thing with animated gifs they would no longer be animated.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline StefanN

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • View Profile

Badges: (View All)
Fifth year Anniversary Fourth year Anniversary Level 3
Re: Image resize
« Reply #7 on: November 01, 2022, 01:48:38 pm »
As I say, not a big issue, just by chance that the image I chose to test it with had transparency.  Thanks for adding the functionality.


Do you know if the upload limit on posts gets applied before or after the images are resized?

Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: Image resize
« Reply #8 on: November 01, 2022, 01:51:35 pm »
The limit is after the image is resized.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline StefanN

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • View Profile

Badges: (View All)
Fifth year Anniversary Fourth year Anniversary Level 3
Re: Image resize
« Reply #9 on: November 01, 2022, 04:35:48 pm »
Thanks

Offline animaniactoo

  • Newbie
  • *
  • Posts: 41
  • Karma: 0
    • View Profile

Badges: (View All)
Second year Anniversary Level 3 Karma Good
Re: Image resize
« Reply #10 on: November 09, 2022, 10:35:04 pm »
Awesome, thanks! I expect this to be very useful. :)


(My less tech savvy forum members also thank you for all your efforts)

Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: Image resize
« Reply #11 on: November 10, 2022, 05:43:41 am »
This has been disabled for now due to a few different errors occurring.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
575 Views
Last post June 03, 2011, 07:15:42 am
by Rude
0 Replies
968 Views
Last post June 19, 2011, 04:02:19 am
by Rude
0 Replies
404 Views
Last post June 15, 2013, 05:15:38 pm
by forum
3 Replies
914 Views
Last post January 21, 2015, 06:54:49 am
by stevegbr
7 Replies
572 Views
Last post August 08, 2018, 09:20:16 pm
by CreateAForum