Printable Version of Topic
Click here to view this topic in its original format
Initial D World - Discussion Board / Forums > Feedback and Support > IDWF hates my Photobucket and won't resize


Posted by: MidnightViper88 Mar 12 2014, 09:05 AM
I've changed nothing of my posting or image uploading habits, and yet as early as February 14 none of my Photobucket image links get automatically resized on this forum anymore. It's kind of obnoxious, though who's left to really annoy anymore anyway? And for some reason I'm being picked on since no one else with a Photobucket account is having automatic resizing problems.

Fur exampul.

photobucket
user posted image


imgur
user posted image
Image size reduced, original size: 1280 x 851. http://i.imgur.com/illbxyx.jpg to view the image in its original dimension.



What gives?

Posted by: Nomake Wan Mar 12 2014, 03:46 PM
https://www.facebook.com/groups/idforums/permalink/10152009636373644/?stream_ref=2

EDIT: After inspecting your images in the Recent Purchases thread I've found the issue. The forum is trying to add ~original to your image, but yout original images were mobile uploads and/or are not configured to do 'original' size by default. So when the forum goes to grab it there's a redirect from the small to the large so the resize filter doesn't do its job.

You can fix this by going into your Photobucket settings. On the right, click 'update link settings'. Then click 'customize upload options'. Choose '1024x768' and make sure to check the box for original sizes.

If you're curious how I know you have your account misconfigured, it's because all your images have Photobucket's randomly-generated strings attached to the end of all the filenames. wink2.gif

Posted by: MidnightViper88 Mar 12 2014, 05:44 PM
Huh, whaddahya know...this is what I get for not popping into the group page since over a month ago; I end up missing that memo. tongue.gif

Well, I found out the privacy setting that scrambles file links. Nice to see Photobucket managed to automatically turn that on for me from a while ago; Always wondered about that and thought it was really helpful of them, as I've previously never said. derp.gif

Short of that, the original image size outlink setting isn't changing anything. Been messing around with that and uploading various images for post previews and the forum still isn't resizing anything. Doing the same thing by going back and editing an old post that had resized photos and just previewing the post without changing anything then shows the pictures in full resolution.

Hmm...I'm curious though. It just kind of came to me, but would Perry's forum patch be not applicable to certain members like some sort of coding oversight? I'm gonna have to get him to stop touching little boys and girls for a couple minutes to check this out.

Posted by: Nomake Wan Mar 12 2014, 06:40 PM
Yeah, I'm not sure then. Ever since the patch my PB images have been working fine, so this looks like something Herr Admin will have to poke at. A mystery is afoot!

Posted by: Perry Mar 12 2014, 10:18 PM
Very strange.. I can rule out it's not your PB account or your forum account though, because I just tried to upload the same image to a PB account I just signed up. Same thing. Now if I upload the same image to imgur, it resize correctly. I will need to research on this...

Posted by: N643 Mar 13 2014, 08:10 AM
FYI perry WME is fine last time i uploaded image from pb, it help me size but when i uploaded the same image (aka copy paste from WME) it did not resize at all

look post 559 on IDF & post 8278 on WME, both same pics i upload from pb (also this started happening last month)

Posted by: Nomake Wan Mar 13 2014, 03:42 PM
user posted image

The plot thickens.

Posted by: Perry Mar 13 2014, 05:35 PM
After some research, I think I found the root of the problem. The issue here is EXIF data. The forums' resizing script doesn't know how to handle EXIF data. And it just so happen that Photobucket is one of the few image hosts that actually preserve the EXIF data in the image header. Imgur removes it because they believe in anonymity and smaller file size. I will see if I can do something to strip those EXIF manually before they get passed onto the resizing script.


UPDATE:
I've updated the first post. The original image from photobucket is a whopping 742KB in size. I saved it and re-uploaded it to imgur. The image now hosted on imgur is only 237KB. As far as I can tell, no quality is lost. The image on imgur does not have any EXIF information. But I can't imagine a difference of 500KB in EXIF data... that seems a little extreme. My guess is that imgur applies some sort of compression to the image when they process it.

Posted by: kyonpalm Mar 13 2014, 06:52 PM
QUOTE (Perry @ 1 hour, 15 minutes ago)
My guess is that imgur applies some sort of compression to the image when they process it.

Yep, it does. I just tested it out by uploading a 1.3MB JPEG and it went down to 654KB. I'm doubtful that the EXIF data amounted to 646KB, so I can only assume they also compress the image in addition to removing the EXIF. I tried this test with Puush and Minus. Neither service resulted in one bit of data lost.

Conclusion: Imgur a shit. I'm glad I never used it.

Posted by: MidnightViper88 Mar 13 2014, 07:33 PM
user posted image
Image size reduced, original size: 1280 x 851. http://i23.photobucket.com/albums/b361/KravinMorhead/figmaRevoltechRinRaiden.jpg~original to view the image in its original dimension.


You can remove EXIF data on Photobucket. Doing so shaves off <100kb worth of file data from the EXIF version in this anecdote. And look, it's resized!

Imgur must put pictures in a butt-squeeze for compression if it shaves off as much data as it does.

Posted by: Nomake Wan Mar 14 2014, 04:32 AM
Ah. That explains it. I don't have EXIF data in any of my images on purpose. happy.gif

Posted by: kyonpalm Mar 14 2014, 11:54 AM
QUOTE (Nomake Wan @ 7 hours, 22 minutes ago)
Ah. That explains it. I don't have EXIF data in any of my images on purpose. happy.gif

It's not just EXIF, though, it's actual compression of the image as well, which is (to me) unacceptable.

Posted by: Nomake Wan Mar 14 2014, 03:45 PM
I host on my Photobucket, which preserves my original image (minus EXIF data which I remove on my end).

Posted by: Spaz Mar 21 2014, 06:01 PM
Perry, did you apply any sort of "fix" to the forum code that bypasses the resize on photobucket pics? Or that adds "~original" to the end of the URL? The wheel pics in my build thread keep resizing to fucking huge.

Posted by: Nomake Wan Mar 21 2014, 09:08 PM
QUOTE (Spaz @ 3 hours, 7 minutes ago)
Perry, did you apply any sort of "fix" to the forum code that bypasses the resize on photobucket pics? Or that adds "~original" to the end of the URL? The wheel pics in my build thread keep resizing to fucking huge.

Yes, there is a forum patch applied manually which applies ~original to the end of the pictures. If you did not bother to resize and/or remove the EXIF data from your image before uploading (as was the case with MV88) then the forum will not correctly resize them on the original theme. You are having the exact same problem.

Posted by: Perry Mar 21 2014, 09:11 PM
I am still working on making the script compatible with EXIF data and it's proving to be rather difficult.. The reason for the difficulty is because the forums is not reading the whole image. It's actually only reading the first 10,240 bytes of the image. (Yup, I changed it from 32KB to 10KB to further reduce server load.) EXIF data sometimes can take more than 10KB so I don't have an one-size-fit-all solution for this problem I am facing.

In the meantime, please make sure you remove the EXIF data from your photobucket! Thanks!

Posted by: Nomake Wan Mar 21 2014, 09:58 PM
PROTIP: Removing your EXIF data also removes any personal information that your camera may have stored about the image. smile.gif

Posted by: Perry Mar 22 2014, 01:35 AM
Well, I hack together a workaround for images with EXIF data. It will resize but it won't show the actual dimension. Basically if the script "sees" any EXIF data, it will go "I ain't touching this" and back off. It will automatically resize the image to 650px in width and calls it a day.

Example:

Image with EXIF data:

user posted image
Image size reduced, original size: unknown. http://i23.photobucket.com/albums/b361/KravinMorhead/figmaRevoltechRinRaiden_zps245a70cd.jpg~original to view the image in its original dimension.



Image with no EXIF data:

user posted image
Image size reduced, original size: 1280 x 851. http://i.imgur.com/illbxyx.jpg to view the image in its original dimension.

Posted by: Nomake Wan Mar 22 2014, 03:02 AM
Beautiful. Good job, Pear.

Posted by: Spaz Mar 22 2014, 06:19 AM
Awesome. Good work!

Posted by: Nomake Wan Mar 24 2014, 06:07 AM
320user posted image

Hey Pear, looks like there's still some little bugs to work out. (Hint: I didn't type '320' before my IMG tags)

Posted by: Perry Mar 24 2014, 10:58 AM
QUOTE (Nomake Wan @ 4 hours, 50 minutes ago)
http://media.247sports.com/Uploads/Assets/129/687/687129.gif

Hey Pear, looks like there's still some little bugs to work out. (Hint: I didn't type '320' before my IMG tags)

Great catch, Donz0rz!! It's fixed now. It was some left over debugging indicator. pinch2.gif

Posted by: Nomake Wan Mar 24 2014, 06:51 PM
Sweet, good to know. Thanks!

Posted by: Spaz Apr 6 2014, 08:18 AM
Okay, so I tried to change my sig, and that didn't work at all... It's a 300x100 image, and the board UPSIZES it to its default display width.

Here's the image, lists size unknown:

user posted image
Image size reduced, original size: unknown. http://i40.photobucket.com/albums/e230/cmspaz/sig20_zps97015e92.jpg~original to view the image in its original dimension.

Posted by: Nomake Wan Apr 6 2014, 08:28 AM
Weird! That being said...

>_zps97015e92

Hrm.

Posted by: Perry Apr 6 2014, 12:56 PM
Mmmm.. okay, here is a dilemma. The forums sees the image with EXIF data, it automatically resize them to 650px width. It doesn't even care if the original is smaller than 650px in width. In order to figure out the image dimension of a file with EXIF info, the forums MUST download the whole file. So that poses a security risk, hence the workaround with the EXIF image.

What I can do is, disable the image resizing of EXIF images in signature only. That way the moderating team will enforce the signature rule manually. Let me go ahead and do that now...


EDIT: Fixed.

In post, the image will still be resized to 650px width, but in signature it doesn't resize it at all if it contains EXIF header.
user posted image
Image size reduced, original size: unknown. http://i40.photobucket.com/albums/e230/cmspaz/sig20_zps97015e92.jpg~original to view the image in its original dimension.

Posted by: Spaz Apr 6 2014, 07:26 PM
QUOTE (Nomake Wan @ Today, 11:28 AM)
Weird! That being said...

>_zps97015e92

Hrm.

And my account is configured to use original sizes, too. dry.gif

Thanks for the fix though, Perry!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)