Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > RocketCake
Portrait and Landscape Image query
Author Text

bobh
Registered User
Quote
2022-11-01 10:50:05

I have a portrait image posted into either an image or image gallery but it always appears as landscape. It shows portrait in File Manage icon view. I am sure it must be possible but need a little help.


erik
Registered User
Quote
2022-11-01 12:24:15

Happened to me to. The reason was the exif info, and various browsers showed it differently (including rocketcake!)

To fix this, remove the exif data. You can do this by saving your image in some image editor as .png, the open that .png and save it again as .jpg.

Then reimport it into rocketcake.

That should do the trick.


bobh
Registered User
Quote
2022-11-01 14:12:39

Many thanks Erik.

Your answer was perfect. All a bit of a hassle though. I had intended to create a gallery of hundreds of landscape cards that I have collected but that will be too much of a task.

I would have expected that the app was more able to correct this during the image import.


micaelo
Registered User
Quote
2022-11-01 14:44:54

You can remove the EXIFs in one batch conversion run using e.g. IrfanView. So that's not a big deal.

(If you want/need to keep the EXIFs for other purposes, work with duplicates.)


bobh
Registered User
Quote
2022-11-01 17:47:59

On the two jpeg images that needed to be converted into png and then back to jpeg I still have an issue. The two are placed in an Image Gallery. Once uploaded or previewed the images do not expand into a < scroll > page with an X top right. Other images that didn't require the file type conversion work perfectly on other pages.


erik
Registered User
Quote
2022-11-02 08:19:56

Do you have a link?


bobh
Registered User
Quote
2022-11-02 09:09:59

Somehow it resolved itself but I have had to start again due to another issue for which I will post - see Menu Links


ivarforkbeard
Registered User
Quote
2022-11-02 15:43:24

Honestly, I have struggled with this issue since I began using RocketCake. I know that I'm told other browsers don't understand the rotation EXIF attribute properly, but that hasn't been my experience. ONLY RocketCake seems to ignore the rotation attribute in the editor. At least when it outputs the website, it preserves the EXIF rotation attribute, so once again, things look fine on the four browsers I have tested with (Chrome, Edge, Safari and Firefox).

Perhaps implementing the rotation attribute in the editor is more challenging than we know, but that would be for Niko to comment on. I know I for one would support spending some time to make that happen.

In the meantime, the two workarounds I have found have been to convert to GIF and then back again. Simply going between PNG and JPG doesn't work for me, as the EXIF rotation flag is still preserved.

I have also used EXIF Pilot to delete the tag - but be warned, if you use the Windows File Explorer to then rotate your picture correction, it actually just resets the rotation flag in the EXIF data and you're back to square one - this has been maddening to me in the past, but now I have realised that if you REALLY want to rotate and not have the EXIF issue, you must use an actual image editor programme (I use paint.net) to REALLY rotate the image - not just set the EXIF flag.

Long story short - the easiest solution would be for RocketCake to actually read and use the rotation flag in our pictures.

Otherwise, you need to clear the data yourself AND find a programme that will rotate the picture for you before saving it - Windows File Explorer has the handy rotate function, but it's only setting the EXIF flag, so for RocketCake, that's not useful AT ALL.

Cheers!


micaelo
Registered User
Quote
2022-11-02 16:14:44

I have come to my personal conclusion and solution on the subject years ago when I switched from film to digital photography: I principally turn off the auto rotate function in any camera I use.
If I take a portrait format picture and want to recheck via playback on the camera's display I prefer to use the full display size rather than just a part of it, even when this requires turning the camera by 90 degrees.
Of course, when I download the pictures to the PC, I will have to turn the portrait formats upright manually. But this way I'm sure that no EXIF flag comes into the way for whatever I'm going to use the pictures.


ivarforkbeard
Registered User
Quote
2022-11-02 16:31:37

Hey, this spurred me to do a bit more work on the subject, and I've written a small batch file and collected two command line applications that fixes this issue. I'll add a link for anyone who wants to try them:

https://file.io/PCxICIEMu3MX

Link expires in a year, sorry if you're reading this on my next birthday! Wish me Happy Birthday and I'll see if I can dig up a new link.

So just put these two .exe and single .bat wherever you like really, and modify the .bat to point at whatever folder you dump your photos in. Run the .bat, and it will look at the orientation flag, transform the relevant jpgs to match the flag, and then delete the flag. Easy peasy! Tested it with RocketCake and now I don't mind as much that RocketCake ignores the orientation flag. Still would be nice to save that step, but hey, what can we do?

I do sort of like Micaelo's idea to stop using orientation data at the camera end of things, but I don't see how that will solve the issue that the rotation function on the (windows) PC will just set an EXIF rotate flag rather than actually transforming your picture - and so RocketCake will still have an issue with it?

Also, would have to do this on the family phones as well - not even sure where to begin with that on different Android models, but I guess I could start looking.

Cheers!


micaelo
Registered User
Quote
2022-11-02 17:04:25

Honestly, I have never checked which way round the Windows Explorer would present my pictures. It's system-wide set to the list view.
I download from camera to a temp folder and load this folder to my image manipulation program. Then the first step is to get rid of the junk. Second step is to open the pictures one by one, do some minor corrections if needed, turn the portrait formats upright, and save.
So correcting the orientation is no extra work.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact