Resize Attached Images (Updated for 2.0 RC4)

Started by Kays, October 17, 2009, 04:19:10 PM

Previous topic - Next topic

Tonyvic

On the Mod page it does state
QuoteLatest Version: 1.5 / 2.4.1
I assume that
QuoteResizeAttachedImages_2-final.zip
will be that version.

Rob Lightbody

Quote from: Ed2 on October 10, 2017, 09:43:25 PM
Within Godaddy we upgraded from Linux Deluxe to C-Panel hosting and just noticed that "Resize Attached Images" won't function with large image attachments.   If the images are reduced it works fine. Also noticed that the forum indicates that  "Resize Attached Images 2.4.1" version is loaded?  Don't see a 2.4.1 version in the down load section? 

Forum is running SMF 2.0.14

I'm having no problems with it on SMF 2.0.15. - in fact its completely invaluable to me.  PHP settings may need fiddled with to get your host to allow large image files, fortunately mine does.

landyvlad

I just installed this on 2.0.15

The install process showed no errors, and the settings page is there HOWEVER please see the top of the attached image and you'll see the problem.

It doesn't seem to appear anywhere except when I'm in the admin area.  I don't think logged in users can see it.  Anyone know what causes this problem and, more importantly, how to fix it?

Ta muchly.

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

GL700Wing

Quote from: landyvlad on April 03, 2018, 01:29:41 AM
I just installed this on 2.0.15

The install process showed no errors, and the settings page is there HOWEVER please see the top of the attached image and you'll see the problem.

It doesn't seem to appear anywhere except when I'm in the admin area.  I don't think logged in users can see it.  Anyone know what causes this problem and, more importantly, how to fix it?

https://www.simplemachines.org/community/index.php?topic=342947.msg3709500#msg3709500
Life doesn't have to be perfect to be wonderful ...

EthanR

Adding this extra code to this mod makes it much better equipped to handle uploads from phones to get the orientation correct:

https://www.simplemachines.org/community/index.php?topic=521231.msg3865613#msg3865613


CarstenP

Maybe a long shot as there has not been any post a longtime.

I'm using SMF 2.0.15 and have installed the mod without any errors or warnings.

When testing it with a 6MB picture it does not give you any errors, but instead of adding the post to the tropic, it opens a blank "start new tropic" page, what the heck do I do wrong ??

I can also see that it do not change the size of the file.

BR
Carsten

GL700Wing

This mod hasn't been updated in almost six years (and the author hasn't logged in since late 2014) - the Automatic Attachment Rotation (and Resize) mod does the same thing (and more).

Also, you may want to consider installing the Improved Attachment Error Handling and  Image Processing Memory Limit mods to help with processing large images (issues/errors occurring with uploading/processing images have more to do with the pixel size of the image [eg, 4000x6000] than the actual file size [eg, 6Mb]).  If you want to use these two mods they should be installed before the Automatic Attachment Rotation (and Resize) mod.
Life doesn't have to be perfect to be wonderful ...

CarstenP

Hi as i said it maybe a longshot.

Thanks for the respons and I tried your suggestions, get the same error as before, and I get a error when adding Improved Attachment Error Handling, see attached pic. erstat = replace and tilføj før = add before

Sir Osis of Liver

I've been using this mod for a while on 2.0.15 forum, works fine.  Do you have the current ResizeAttachedImages_2-final.zip?  You may have a conflict with another mod.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CarstenP

Yes I have downloaded the latest version from the link on the first link

Only MOD I have installed is "Yet Another YouTube BBCode Tag" uninstalled it and still have the same issue  :'(

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CarstenP

Quote from: Sir Osis of Liver on March 20, 2019, 10:27:59 PM
Have you tried doing the edit manually?

Not yet, hope to find time to do it during the weekend.

Sir Osis of Liver

Anyone supporting this mod?  One of my guys is getting complaints that some images are loading upside down.  Works fine for me on his forum and one of mine.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Quote from: Sir Osis of Liver on September 15, 2021, 12:04:42 PMAnyone supporting this mod?  One of my guys is getting complaints that some images are loading upside down.  Works fine for me on his forum and one of mine.


Are the pictures from a phone? Are you viewing on them on a phone?

Phone pictures are inevitably taken rotated and have a flag in them to say which way around they're meant to be shown - but desktop browsers have a habit of not respecting that flag and just showing them how they were stored, which is often not correct compared to how the photo declares itself.

Sir Osis of Liver

AFAIK there's nothing in this mod that would rotate an image.  This seems to be something that just started recently.  Been trying to get more info from forum owner, nothing yet.  Attachments upload and display normally on pc, but I do see the upside down images on previous posts.  There's a newer mod (Automatic Attachment Rotation (and Resize)) that rotates phone images, it's in his package manager uninstalled.  Don't remember if we installed it, don't see a package backup for it.  If we can't determine the cause will try that.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Ah but there is. Remember how I said that the images were stored in the wrong orientation and fixed by (some) browsers ar display time?

That only works if you don't strip the EXIF data. Guess what resize via GD will do... strip the data that tells the browser "hey this image is really the wrong way around, rotate it when you display it"...

Sir Osis of Liver

But the upside down images are upside down if you d/l the file and view it in image editor.  They've been fixing it by d/ling the file, rotating it in editor, u/ling it.  Will wait to hear back from them, if problem continues we'll try the other mod.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Quote from: Sir Osis of Liver on September 16, 2021, 05:33:03 PMBut the upside down images are upside down if you d/l the file and view it in image editor.  They've been fixing it by d/ling the file, rotating it in editor, u/ling it.  Will wait to hear back from them, if problem continues we'll try the other mod.


That's the point.   The resizer removes the exif data that tells the system to rotate it.  If you download the file from the forum, you are downloading the altered file. By rotating and re-saving it, you are literally altering the file on a computer - so, of course that results in the re-uploaded file being correct.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

The attachments that haven't been fixed are upside down, thumbs and pics are displayed upside down, jpg is upside down when viewed in editor.  If the original images were rightside up, then they were rotated when attached.  The old mod resize we're running doesn't rotate images, been using it on one of my forums for couple of years.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

You're still missing the point.

Some photos will be upside down in some editors *anyway*. Because they're physically stored that way and not every editor bothers to check the EXIF data to see if it needs to rotate on loading (not saving).

But this mod is going to break that if that's how the image was taken because it removes the "I'm actually upside down" marker.

Advertisement: