Advertisement:

Author Topic: Resize Attached Images Mods for SMF 2.0.x?  (Read 13127 times)

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,483
    • ApplianceJunk.com
Resize Attached Images Mods for SMF 2.0.x?
« on: April 14, 2014, 09:12:00 PM »
Looking for mods that auto resize attached images.
The only one I can seem to find is this one.

http://custom.simplemachines.org/mods/index.php?mod=2206

Thinking there was another one when I looked some time ago. I'm I missing something?

Thanks,

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #1 on: April 14, 2014, 09:29:26 PM »
To resize the attached images is the only one I found.
There are some others to resize the images displayed, but the real attachment, not that I know of...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,483
    • ApplianceJunk.com
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #2 on: April 14, 2014, 09:31:20 PM »
Hmm, did some mod makers move there mods from SMF to their own sites?
Maybe it was on another site I seen it?

Offline mashby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,394
  • Gender: Male
  • badass beer hound
    • Choppix
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #3 on: April 14, 2014, 09:37:33 PM »
I thought SMF did this on its own (well, by settings in Features and Options > Layout).
Max width of posted pictures (0 = disable)
Max height of posted pictures (0 = disable)
Always be a little kinder than necessary.
- James M. Barrie

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,483
    • ApplianceJunk.com
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #4 on: April 14, 2014, 09:40:20 PM »
Was thinking I seen a mod that resized the file size not just the dimension so you could save space on your server.
A lot of my members can't seem to figure out how to resize a photo themselves before uploading it.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #5 on: April 14, 2014, 09:41:30 PM »
@AJ, I can see even removed MODs but, if the user scrambled the name when removing it, then it can't be found by "resize" anymore. So I can't really tell...

@mashby: that resizes the *displayed* image. The MOD AJ mentions resizes the attachment itself.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline mashby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,394
  • Gender: Male
  • badass beer hound
    • Choppix
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #6 on: April 14, 2014, 09:45:17 PM »
OK, on another site I help with, the attached images thumbnails settings are what I'm seeing. What's wrong with the mod you linked to AJ? Seems to do what you might be wanting. :)
Always be a little kinder than necessary.
- James M. Barrie

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,483
    • ApplianceJunk.com
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #7 on: April 14, 2014, 09:48:53 PM »
OK, on another site I help with, the attached images thumbnails settings are what I'm seeing. What's wrong with the mod you linked to AJ? Seems to do what you might be wanting. :)

It talks about resizing dimension and nothing about changing the file size.


Offline mashby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,394
  • Gender: Male
  • badass beer hound
    • Choppix
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #8 on: April 14, 2014, 09:50:35 PM »
Maybe not explicitly, but if you take a large dimension image and resize it to a smaller dimension and then save it, you will hopefully get a smaller file size as a result. If you don't, I'd be shocked/amazed/disappointed.
Always be a little kinder than necessary.
- James M. Barrie

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,483
    • ApplianceJunk.com
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #9 on: April 14, 2014, 10:05:08 PM »
Ok, I'm thinking along these lines as to how the displayed photo dimension size can be changed without changing the file size.
http://www.bbcode.org/examples/?id=10

Not sure if that is all the mod I posted is doing, just changing the size that is being displayed or actually changing the file size.

Offline mashby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,394
  • Gender: Male
  • badass beer hound
    • Choppix
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #10 on: April 14, 2014, 10:07:19 PM »
I'm not entirely familiar with the mod, but it sure seems like it does what you need. The link you just provide is merely using HTML to resize the image, the entire time, all of the images being referenced is this:
Code: [Select]
http://www.bbcode.org/images/lubeck_small.jpg
Always be a little kinder than necessary.
- James M. Barrie

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #11 on: April 14, 2014, 10:10:26 PM »
It is changing BOTH because it really changes the image itself.

If you attach a big picture, taken with a state-of-the-art 200 megapixels camera which, in JPG format, takes 100Mb ;D This MOD would send to your server's filesystem a much smaller, eg 1024x768px with 400kB (or whatever filesize it becomes after resizing)
If you don't use this, you will end up with an attached file of 100Mb that would need to be fully loaded. That image would have like... 12231231232 x 5533233 px ;D
SMF (with that BBC you linked) would resize it like mashby points *BUT* after it had been fully loaded.

See the difference? ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #12 on: April 15, 2014, 08:48:58 AM »
The physical file size is determined by the dimensions. Width x height x 3 (colours) is the size as a bit map image. Or what you'd see if you were looking at it in a photo editor. Then when it is saved as a jpeg image, the physical size is reduced.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline a10

  • Charter Member
  • Sr. Member
  • *
  • Posts: 855
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #13 on: April 15, 2014, 09:50:46 AM »
Quote
A lot of my members can't seem to figure out how to resize a photo themselves before uploading it
One meets those trying to upload some 5 x 4 Meter pictures, with zero understanding (what's the problem? looks small on my camera\pc\phone display).

I set file types and max file size, and stick to it whatever happens, providing much info in the faq, with links to programs for resizing and a help section. Extra work, but 99% gets the how's & why's without too much whining. Those few who can't grasp it I refer to use some image hosting, or get them to ask for help from family or friends. Of course, some easy to use built-in auto-resize could be nice.
2.0.15, ssl, php 7.1.31, MySQL 10.3.13-MariaDB~bionic
Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Online szinski

  • Jr. Member
  • **
  • Posts: 114
  • Gender: Male
  • Programmer by day, photographer by night.
    • Pizza Making
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #14 on: October 20, 2014, 09:50:58 AM »
I love the "Resize Attached Images" mod (thanks Kays)... it allows iPhone users to upload images to my forum without having to resize them first. But, I'm having an issue with image orientation. A lot of iPhone images have the wrong orientation... sideways, upsidedown, etc... Does anyone know of a mod that will automatically read the exif data on an image and set the correct orientation during image upload?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #15 on: October 20, 2014, 09:53:04 AM »
This has been discussed in another topic not long ago.

In short: it's quite technical and difficult, there are currently no mods to fix that...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #16 on: October 20, 2014, 10:26:53 AM »
Was thinking I seen a mod that resized the file size not just the dimension so you could save space on your server.
A lot of my members can't seem to figure out how to resize a photo themselves before uploading it.

AJ, the mod you mentioned in your first post would do this. I use it on my forum and it works great. Saves a lot of space and most of all, your members won't have to worry about resizing themselves.

Offline roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #17 on: April 28, 2015, 06:01:03 PM »
This has been discussed in another topic not long ago.

In short: it's quite technical and difficult, there are currently no mods to fix that...

Hello Margarett, can you point me to a link for this discussion? Thanks

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #18 on: April 28, 2015, 06:33:15 PM »
IIRC, Arantor's gallery features that automatic rotation (which he implemented).
It's paid stuff, though.

I'll try to find the discussion ;)

edit: I think it's this
http://www.simplemachines.org/community/index.php?topic=514372.msg3636111#msg3636111
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline roshaoar

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
Re: Resize Attached Images Mods for SMF 2.0.x?
« Reply #19 on: April 29, 2015, 02:31:10 AM »
Thanks Margarett