Misc => Forum Issues & Help => Topic started by: ST on September 01, 2010, 04:27:13 PM

Title: Forum with Safari
Post by: ST on September 01, 2010, 04:27:13 PM
Quote from: BenF on September 01, 2010, 03:29:14 PM
Here's a screenshot from my iphone, running safari

(http://www.larriveeforum.com/smf/index.php?action=dlattach;topic=33493.0;attach=9960;image)

I don't know what the answer is, it does it for all the pics shooting star and one or two others have posted.  No idea what the difference is that makes them do it.


Here's a screen shot of what I see in Safari on Windows 7 when looking at the main page of the forum

[attachment deleted by admin]
Title: Re: Forum with Safari
Post by: BenF on September 01, 2010, 04:43:51 PM
Might just be an iPhone problem then ST. I can see it the right way in your screenshot on my iPhone though, ha ha!!  It would be helpful to know what OS and device Ponte is having issues with.
Title: Re: Forum with Safari
Post by: Randy_R on September 02, 2010, 10:21:13 AM
There seem to be several web notes with the words "iphone has problems with picture orientation".

http://dret.typepad.com/dretblog/iphone/

I found an iphone forum note that said something about images being displayed in their 'original' orientation (ie landscape or portrait).

So this 'might' be a case of a picture being taken with the camera sideways, then rotated by a utility before being posted here on the forum. And there is some code in the jpeg that still says it should be sideways so the ipod is rotating it back when displayed???  

Thats the only thing I can find. Someone with an Iphone should be able to confirm the above.

Might want to know what kind of camera L07 is using too.



http://osxdaily.com/2009/08/14/preview-not-saving-jpg-rotation-use-exif-data-to-fix-rotated-image-display/

If there is a way I could process the image (under Windows) so that it would always have the intended orientation on an iphone, I would do so. suggestions?
Title: Try this one
Post by: ST on September 02, 2010, 11:01:38 AM
Hi Randy, Ben

Ben - look at this one with your iPhone.

If it looks okay then Randy - this should work okay for the Forum home page

[attachment deleted by admin]
Title: Re: Forum with Safari
Post by: BenF on September 02, 2010, 12:26:54 PM
Works for me ST, nice one  :thumbsup
Title: Re: Forum with Safari
Post by: Randy_R on September 02, 2010, 01:21:39 PM
replaced the Home page image with the one ST provided. Thanks ST

Ben, how does it look?

ST, what did you do?

Do we need to caution people posting images to save them a certain way to preclude this problem on all images?
Title: Re: Forum with Safari
Post by: BenF on September 02, 2010, 01:46:17 PM
Homepage fine now Randy
Title: Re: Forum with Safari
Post by: ST on September 02, 2010, 03:58:04 PM
Hi Randy

Quote from: Randy_R on September 02, 2010, 01:21:39 PM
replaced the Home page image with the one ST provided. Thanks ST

Ben, how does it look?

ST, what did you do?

Do we need to caution people posting images to save them a certain way to preclude this problem on all images?


I right clicked on the image on the home page.
Right - Click: Copy (copies to Windows clipboard)

Opened an image editor (I used Snagit editor) but I'm sure photoshop would have worked.
Created a new blank image
Pasted from the clipboard

Trimmed the image.
Saved it.
Uploaded it here as an attachment.

I figured that the metadata in the original file would be lost running it through the Windows clipboard.

Sounds like it worked.

I don't know what you could tell people about uploading images. It seems as this is only applicable to images that were rotated - and it might take a lot of investigation to figure out when/how the rotation thing is an issue.

For example - I'm going to upload an image I rotated in photoshop and THEN saved it as a jpg. I'm guessing that it will be fine.
Ben, please tell us if this looks okay.



[attachment deleted by admin]
Title: Re: Forum with Safari
Post by: BenF on September 02, 2010, 04:26:11 PM
Yup, that's fine on my iPhone.
Title: Re: Forum with Safari
Post by: ST on September 02, 2010, 04:42:58 PM
Hi Ben,

If you don't mind, let's check this one out.

I took the image above and rotated it 90 degrees using Windows Photo Viewer

How does it look to you on your iPhone?

[attachment deleted by admin]
Title: Re: Forum with Safari
Post by: BenF on September 02, 2010, 05:07:07 PM
Sideeways.

It's funny, when L07 Shooting Star posted his pics originally, they were all wrong. Maybe they are converted png files, whereas you are creating a new jpeg file.  It's the only think I can think of.
Title: Re: Forum with Safari
Post by: L07 Shooting Star on September 02, 2010, 07:21:22 PM
OK lets see if we can find the issue by the process of elimination.
Common denominators:
- All pictures were taken with Canon Rebel XT digital SLR and saved in their standard jpeg format.  When captured and saved by the camera, they were 2496X1664 pixels and anywhere from 1.5 to 2.5 mb.
- All were edited in Microsoft Office Picture Manager.  I didn't use any other editing software for any of these ones.
- Many were rotated 90 degrees.  Most before resizing, but not all.
- Most were cropped to some extent.
- Several were adjusted for brightness and contrast with the "Auto Brightness" button, but not many since I don't usually like the results.
- All were resized smaller so that they would fit the limitations of the forum.
           -Some were resized using the "resize" command and then choosing predefined height and width of either 800X600 or 640X480 from the selection list box.
           - Others (not many and mostly the earlier ones) were reduced by using the "Compress pictures" command.  This routine both resizes the picture in terms of pixels, also "saves the file to a compressed format" (quoting the program).  Again there are predefined choices.  I believe the GOTM picture may have been processed this way, but I can't remember for sure.
- After resizing, I query the program to get the dimensions in pixels and total file size of the modified image.  If it was still too large a file size (> 199kb) I used the "export command" to create the final file.  That's because that method allows you to adjust the picture quality downward to make the file size smaller when you choose jpeg as the file format.  I only did this with the first ones which includes the GTOM picture I think.  I've since quit using the compress command but I still occasiounally use the EXPORT COMMAND/quality slider to save a file that's slightly too big.

PART 2 TO FOLLOW
Title: Re: Forum with Safari
Post by: L07 Shooting Star on September 02, 2010, 07:38:21 PM
PART 2 - TROUBLESHOOTING MY PICS
*JUST MODIFIED THIS POST REGARDING THE PICTURES BEING ROTATED.*

I haven't performed all the steps given in part 1 in the same order.  Sometimes I rotated first, then cropped, then resized or compressed.  Other times I might have resized first, then rotated, cropped etc. etc. etc.

The GOTM picture of the 12 string WAS rotated.  It was captured vertically in the camera then rotated in the Picture Manager software.  Interestingly the camera display screen, and the Canon Zoom Browser software will automatically rotate a picture taken vertically for display purposes.  But in the Zoom Browser software, it is displayed squished and distorted just like in the Safari browser.  So the file code "knows" when a picture was taken that way.  I'm thinking this autorotation thing might have something to do with it.  I may just have to turn this feature off in the camera.  I'll check and see if this can be done.

Either that, or the "export" command/reducing the quality, or the "compress" command may be the culprit.  When you choose "format" in the export command, the first choice is "original format".   However, with this choice you don't get an option to adjust the quality with the slider.  So I've been choosing "JPEG File Interchange Format (*.jpg)" to get the quality slider.

If I could get some feedback on which of my pics work and which don't and what threads they are in, it would help me figure this out.  I would also need to know what is wrong with them (are they just sideways, or are there other issues?)  Then I will create a set of test pics and get you guys to see if they work.

I have some good nude shots of my wife I could use for the test shots. :whistling:

Kurt :bgrin:
Title: Re: Forum with Safari
Post by: Randy_R on September 02, 2010, 08:54:12 PM
no nudes here. we get our thrills looking at pretty guitars.   :cop:

I suggest starting from scratch and trying several shots rotated and not, editted and not. that way we have a controlled test, and you aren't trying to remember what you might have done to pictures taken in the past.
Title: Re: Forum with Safari
Post by: L07 Shooting Star on September 02, 2010, 09:10:46 PM
I was joking of course.  I hope you don't think I would really post pictures like that, because I would never do such a thing, not even for a joke.

OK, Here are two test pics. for starters.
Need to know if one comes out correct and one doesn't.  If so which one is wrong.

Kurt

[attachment deleted by admin]
Title: Re: Forum with Safari
Post by: BenF on September 03, 2010, 01:42:29 AM
Top one is wrong on my iPhone, the bottom one is fine.  I
Wonder if you are onto something with the autorotate feature on the camera. My DSLR does that too. MUST be coded into the file somehow. I believe (I think) some programmes on the computer pick this up. I think photobucket does, if you just upload the raw files.

Makes sense to me, and would explain why some members have the issue and others don't. The specific camera used would need to
Have that capability.

If you use Microsoft photo editor, and use the save as feature, you would not undo the coding to autorotate. If you cut and paste into a new file like ST did, forming a new jpeg, then the code wouldn't be there.
Title: Re: Forum with Safari
Post by: L07 Shooting Star on September 03, 2010, 02:48:04 AM
By Jove, Benf, I think you've got it!  And ST's intuition helped too.

The top picture was taken with the autorotate option turned on in my camera.  The second one was taken with that option turned off.  Both  pictures were then rotated and resized in Microsoft Office Picture Manager exactly the same way.  So, as you suggest, both of the files have info in them that say they were taken vertically.

However, with autorotate turned on, the code must also include instructions to rotate them when displaying them.  Some programs use these instructions, and others must ignore the instruction.  So when I "manually" rotated them with my software, and saved them, those instructions remained in the file.  Then when certain programs that don't ignore those instructions are used to display them, they just go ahead and rotate them, not knowing they have already been rotated by me already. :wacko:

Assuming this is the only issue with my pics, all I have to do is take them with the autorotate function turned off in the camera.  An easy fix indeed! Whew.  To confirm this I would still like to get some feedback on the test pictures from anyone else who was having the problem.  I'm surprised this hasn't happened at least a few times in the past given all the members in the forum and all the pictures submitted.  Maybe it's because not many use a browser that obeys the autorotate instruction, like yours did.  Have you experienced this with any other members pics in the past?

So the take-home lesson for other posters is to not take pictures with that feature turned on.  At least with some cameras, like my Canon Rebel XT (about 5 years old now).

And yes, those are in fact pictures of my lovely wife, to whom I've been married 38 wonderful years as of yesterday, Sept. 1.  And you'll just have to use your imagination about any nudity. :wink:

Kurt
Title: Re: Forum with Safari
Post by: BenF on September 03, 2010, 02:59:38 AM
I have seen quite a few pictures the wrong way around on my iphone, but because of the GOTM thing, i mentioned it publically - for the sake of the forum.  I know many people use iphones now, and didn't want the home page looking amatuer, on what is the best organised and run forum I know of.  ST is a bit of a whizz with all things computers, as are others on here, so I knew the answer would turn up.
Title: Re: Forum with Safari
Post by: L07 Shooting Star on September 03, 2010, 03:09:57 AM
Quote from: BenF on September 03, 2010, 02:59:38 AM
I have seen quite a few pictures the wrong way around on my iphone, but because of the GOTM thing, i mentioned it publically - for the sake of the forum.  I know many people use iphones now, and didn't want the home page looking amatuer, on what is the best organised and run forum I know of.  ST is a bit of a whizz with all things computers, as are others on here, so I knew the answer would turn up.
Ben, I'm so relieved to hear that you've seen it before.  I thought it was just me causing problems.  Good thing is looks like it's been solved.

By the way, I couldn't help but notice you were up and on the forum very early based on where you are, and I am up and on the forum very late based on where I am (it's now just after 1 AM here in Alberta).  But no matter.  I wholeheartedly agree it's a wonderful forum to belong to and the sooner something like this is resolved, the better for all concerned.

Cheers  :cheers


Kurt
Title: Re: Forum with Safari
Post by: BenF on September 03, 2010, 05:49:49 AM
Yep, i get up at 6 to get ready for work, and usually check the forum on my phone with my coffee before the rest of me wakes up.  I guess that is between 11pm and 1amish for many forum Members.

Our Australian friends are often on then too, in the evening, ha ha
Title: Re: Forum with Safari
Post by: Randy_R on September 03, 2010, 10:17:57 AM
I think we have it.

The links I provided below may have the technical explanation:

the orientation field of the Exchangeable Image File Format (EXIF) metadata that is embedded in the JPEG file. the orientation field can have one of eight (yes: eight) values. it turns out that what happens now is that the iPhone does not rotate the image anymore, instead it expects the recipient to understand and support the orientation information and rotate the image accordingly.

If asking image posters not to use auto-rotate will resolve this, then I'll do so. I don't have an Iphone to verify this however, so for a while, I may depend on Ben or others to identify any rotated images so we can alert the posters not to do so, and make sure we fully understand the issue and solution.

I could make the following post in the "Pictures" forum:

There appears to be an problem with the way iphones and potentially other image display programs handle .jpg (JPEG) image files. The issue has to do with the EXIF metadata when the file has been rotated. Some cameras have an auto-rotate feature and if used, may cause the image to not be displayed on an iphone. Some methods of editting and saving the image may remove the EXIF metadata, but since verifying that is difficult, it is suggested to just avoid using auto-rotation.


Title: Re: Forum with Safari
Post by: BenF on September 03, 2010, 11:47:53 AM
Sounds good to me. I'll let you know if it crops up again (no pun intended)

There are lots of blips with image posting, like missing links to photobucket etc. This time it became very noticeable due to the GOTM issue. 

Thank you ST, Randy and L07SS for all the effort to resolve this.