LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Storing a rotated picture works in Cinnamon, but not in Mate. (https://www.linuxquestions.org/questions/linux-newbie-8/storing-a-rotated-picture-works-in-cinnamon-but-not-in-mate-4175511196/)

tvannee 07-15-2014 04:21 PM

Storing a rotated picture works in Cinnamon, but not in Mate.
 
When I started with Linux Mint I used Cinnamon.
I rotated a picture and saved it, which worked allright.
To compare Cinnamon with Mate I have now Mate installed.
But when I open a picture and try to rotate it, it does not work.

Why can I save a rotated picture in Cinnamon, but not in Mate?

jpollard 07-15-2014 04:36 PM

Depends on the tool you are using to open it.

Most generic tools have a rotate built in. But some lightweight utilities don't.

What are you using to open and display images?

suicidaleggroll 07-15-2014 04:36 PM

Cinnamon/Mate is the desktop environment. The desktop environment does not rotate or save pictures.

When you open a picture, it is being opened in another program, and chances are whatever program Mate defaults to cannot save the rotated picture, while whatever program Cinnamon defaults to can.

We need a lot more details to provide any more information than that...what type of picture are you opening/saving? What program is it being opened in?

joe_2000 07-16-2014 03:21 PM

Assuming that you are using Mint 17:

Cinnamon defaults to "Gnome Image Viewer".
Mate defaults to "Eye of MATE".
Both have a rotate button in the toolbar, and both look almost the same.

Which leads me to believe you may need to describe in a little bit more detail what you mean with
Quote:

But when I open a picture and try to rotate it, it does not work
I suspect that you are actually using a tool which is able to rotate images, but fails because of other reasons.
Are you maybe rotating successfully, but getting an error message when trying to save the rotated image? If that is the case, please post what the message says.
Or does the tool suggest to have saved successfully but when you open the image again it's not rotated as you would expect?

Additional helpful information would be:
Which Release of Linux Mint are you using?
Which image viewer are you using? You can find out by going to Help->About in the viewer's menu.
Where is the image located that you are trying to save? I am asking because if it is located somewhere where you do not have write permissions that may well be the reason why you can't save it. You can right-click the file and choose "properties", then select the "Permissions" tab. Are you the owner of the file? Do you have read / write access?

tvannee 07-16-2014 05:53 PM

Thanks everybody for your replies.

Hereby I hope to answer all your questions.
1. My OS is Linux Mint Mate 17.
2. Looking at the image properties I do have read and write access.
3. The image is on the desktop.
4. Double clicking on the image starts "Eye of MATE 1.8.0", with which, according to the menu, you can browse and rotate images.
5. When I click on the rotate icon it does rotate the image without any errors.
6. When I want to terminate Image Viewer it does ask me if I want to save changes to the image before closing.
7. When I push the Save button I donīt get an error so I would expect everything to be all right, but I see immediately on the image icon on my desktop that it has not been rotated.

Hopefully somebody can still help me.

frankbell 07-16-2014 07:06 PM

Maybe I'm nitpicking--yes, I am, but details matter--after noticing the unchanged icon, have you clicked on it to make sure the picture itself is still unchanged?

Have you tried rotating the picture in another program, such as the GIMP (on the menu, Image-->Rotate or Tools-->Transform-->Rotate). That might help narrow down the scope of the problem.

tvannee 07-17-2014 10:11 AM

Thanks for your answer, frankbell

After the rotate command and "saving" the JPG file in "Eye of MATE Image Viewer" (OS MATE 32) the picture still had the original position when I opened it again.
Though I did not get an error message when "saving" the file, file properties did not changed, so apparently saving had not taken place.

Rotating in GIMP went alright and when I saved the GIMP image as a PNG file I could also rotate the PNG image in "Eye of Mate Image Viewer".
So it looks like that the "Eye of Mate Image Viewer" cannot rotate JPG files, but can rotate PNG files. Could that be so?

Because I was curious how this happened in Cinnamon 64 I have installed Cinnamon 64 alongside Mate 32 (both LTS 17 version) on my PC.
The same JPG file that could not be rotated in "Eye of MATE Image Viewer" could be rotated in the "Eye of GNOME Image Viewer" of Cinnamon 64.

You might wonder why I use the Mate 32 version, while I also use the Cinnamon 64 version.
Reason is that I want to install Mate 32 on older computers and so I can compare it with the Cinnamon 64 version on my own PC.

joe_2000 07-17-2014 02:49 PM

I reproduced this in a virtual machine running Mint 17 Mate. This seems to be a bug indeed. Funny thing is I also installed other image viewers. gpicview says "Bogus virtual array access" in the terminal it was launched from when trying to save a rotated picture. gthumbview even crashed when trying to rotate a jpeg. Pretty weird...
After uninstalling Eye of mate and installing Eye of Gnome and Eye of gnome debug symbols it finally worked.

So you could

Code:

sudo apt-get purge eom
sudo apt-get update
sudo apt-get install eog eog-dbg

And see if this helps... I should say I fiddled around with other viewers a bit, so I can't be 100% sure what eventually fixed it. But it would seem reasonable that the above suggestion could help.
Note you might have to adjust your settings for jpg images to be opened by eog (Eye of Gnome) by default now. You can do this by right-clicking a file, then choosing properties, then go to "opens with" and choose the eog image viewer...

Good luck.

tvannee 07-17-2014 03:32 PM

Great joe_2000, that worked perfect!

I didn't even have to adjust the settings for JPG files.
I don't know anything about termial code, so what happened in the terminal window I haven't got an idea.
So one final question: do you have a suggestion for a Newbie to learn a bit more about this?
Thanks very much.

frankbell 07-17-2014 08:00 PM

tvannee, it looks like you have a bug about which to file a bug report! Nice job of ruling out culprits once you started digging, by the way.

I use Mint Mate edition, but I don't use Eye of Mate. If I don't need to fire up the GIMP, I much prefer Gwenview.

tvannee 07-18-2014 05:55 AM

Thanks frankbell,
But where do I file a bug report?

And also thank you for your tip about KDE Gwenview.
I had a look at KDE and a new world went open to me.

joe_2000 07-18-2014 03:52 PM

Quote:

Originally Posted by tvannee (Post 5205516)
So one final question: do you have a suggestion for a Newbie to learn a bit more about this?
Thanks very much.

In this particular case you could search the web for the commands that solved your problem and try understanding them.
By the way you should *always* do this before running any commands someone tells you to run.

In general it's always the same: Search the web for problems you are having, and try to understand the solutions offered. Read man-pages. And obviously come here for help when you are stuck...

The command line is useful for remote support because it is easier to give instructions then trying to guide you through GUI dialogs. Plus cli instructions are typically more generically applicable to different systems.

frankbell 07-18-2014 07:29 PM

Quote:

But where do I file a bug report?
There's link on this page at the Mint site. Do not be surprised if you are asked to create an account; that's common for reporting bugs.

littlejoe5 07-19-2014 01:03 AM

I have noticed that not all programs want to save files back to the same directory that the file came from. I wonder if Eye of Mate is saving the picture that you got from 'Desktop' and (after you have rotated it) saving it to "pictures' or 'photos'. Or changing the name so as not to delete the the original.


All times are GMT -5. The time now is 12:40 PM.