Photo not in a good way ( Resolved by windows...... :)))))))))))) )

Hello friends,

Do you know a way to straighten a photo that is displayed upside down when I want to include it on a topic of a site. :upside_down_face:
These photos taken on the phone, I straighten them with Shotwell then I record. When I post these photos, they are the wrong way round.
Thank you for your help :wink:

1 Like

You could edit them in your phone, or export them to your pc and use a photo edit application like gimp to rotate them.

2 Likes

If you want to rotate at 180°

magick my_picture.png -rotate 180 my_picture_rotated.png

3 Likes

I do it with Shotwell.

1 Like

I have no experience with Shotwell. Maybe it’s easier to use a command like @archus suggested above. Or, use “convert”

$convert -rotate 180 input_image output_image

Write a script to easily convert all if you want.

I think I know what you mean.
I seem to remember that after rotating and saving in the Shotwell viewer, the picture was not rotated when I opened it in other apps etc
I think this is why

http://yorba.org/shotwell/help/edit-nondestructive.html

2 Likes

LOL, that’s a feature of gnome software?

Non-destructive so the original is preserved. Some GIS software pckages have the same feature. There are QA/QC, and occasionally, legal reasons that the original always be preserved. Having to export the manipulated image adds a level of redundancy (assuming the original was backed up) and “idiot proofing”.

1 Like

Thannk you but Is there an equivalent to Picture Resizer (for windows 10-11) for Linux?

@NoBoss Although I too use Shotwell to manage my photos, I use Gthumb to edit crop rotate etc
https://help.gnome.org/users/gthumb/stable/index.html.en
sorry @chroot :rofl:

It doesn’t work any better… :weary:

Well, you could turn your monitor upside down @NoBoss.

After you do a 180 in your viewer, don’t forget to save your changes. GIMP works.

I just opened a screenshot png in gthumb, rotated it by 90 degrees twice so that it was upside down

And then I saved it

Then I opened it with feh, pinta, Gimp, Inkscape, LibreOffice draw, Firefox and Chromium and in all cases it was shown upside down.

Did you save it (or save as) after rotating?

I also then rotated it using pinta (pretty much like Gimp lite or Windows Paint) and saved it and it was then the right way up again in Gthumb.

1 Like

Another Gnome application. Appears non-destructive photo editing is baked into gnome.

Open a screenshot in Gimp and rotate it. After saving it, open the image with feh or gthumb.

I just did it. Rotated with Gimp and used the “Overwrite…” option to save it. Opened the rotated image in sxiv and feh.

2 Likes

Sorry not on Phone but on my computer this is what I do:

 24 Feb 23 @ 15:48:09 ~
   $ cd /media/5/images/
 
 24 Feb 23 @ 15:48:48 /media/5/images
   $ meta
 
   ↓ jpg found
Warning: ICC_Profile deleted. Image colors may be affected - 3+.pair.jpg
Warning: ICC_Profile deleted. Image colors may be affected - COMP.jpg
Warning: ICC_Profile deleted. Image colors may be affected - Happy·Birthday·Linux.jpg
Warning: ICC_Profile deleted. Image colors may be affected - Lily-Disabled.jpg
Warning: ICC_Profile deleted. Image colors may be affected - My.weather.jpg
Warning: ICC_Profile deleted. Image colors may be affected - Que.miras,bobo.jpg
Warning: ICC_Profile deleted. Image colors may be affected - VI_V_IV_Vikings.jpg
   91 image files updated
   48 image files unchanged
 
   ↓ jpeg found
    6 image files updated
    2 image files unchanged
 
→ no JPG's
 
→ no JPEG's
 
   ↓ png found
Warning: [minor] Text chunk(s) found after PNG IDAT (fixed) - Vector_Video_Standards.png
    3 image files updated
   12 image files unchanged
 
→ no PNG's
 
→ Removing *_original files
 
 24 Feb 23 @ 15:48:53 /media/5/images
   $ 

As you see I forget to do it sometimes… until prompted.
Go to hades GNOME!

#!/bin/bash
# remove meta data from images
# this version will work only in current directory.
# added " -r " to do sub directories

shopt -s nullglob

set -- *.jpg
	echo " "
if [ "$#" -gt 0 ]
then
	echo "   ↓ jpg found"
	exiftool -all= -r *.jpg
else
	echo "→ no jpg's"
fi


set -- *.jpeg
	echo " "
if [ "$#" -gt 0 ]
then
	echo "   ↓ jpeg found"
	exiftool -all= -r *.jpeg
else
	echo "→ no jpeg's"
fi


set -- *.JPG
	echo " "
if [ "$#" -gt 0 ]
then
	echo "   ↓ JPG found"
	exiftool -all= -r *.JPG
else
	echo "→ no JPG's"
fi


set -- *.JPEG
	echo " "
if [ "$#" -gt 0 ]
then
	echo "   ↓ JPEG found"
	exiftool -all= -r *.JPEG
else
	echo "→ no JPEG's"
fi


set -- *.png
	echo " "
if [ "$#" -gt 0 ]
then
	echo "   ↓ png found"
	exiftool -all= -r *.png
else
	echo "→ no png's"
fi


set -- *.PNG
	echo " "
if [ "$#" -gt 0 ]
then
	echo "   ↓ PNG found"
	exiftool -all= -r *.PNG
else
	echo "→ no PNG's"
fi

#	rm *_original files created by exiftool
set -- *_original
	echo " "
if [ "$#" -gt 0 ]
then
	echo "→ Removing *_original files"
	rm *_original
else
	echo "→ no *_original files found"
fi
exit
2 Likes

I thought my tests showed that if you save it after rotation in Gthumb then its not ‘non destructive’ (i.e. the file itself has been changed, not just a flag) since the rotation is then still there when i reopen the file in all the other apps I mentioned, including Gimp.

2 Likes

My bad. I misread that.

2 Likes

I’m not surprised. I dont make much sense :rofl:

God i hate writing on discord on my phone. Its a nightmare

2 Likes

You’re good. Listening to music and reading too fast on my part.

3 Likes

I installed Picture resizer on it works without problem. Too bad, I keep… :disappointed_relieved: