Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1446  / 3 Years ago, fri, november 5, 2021, 12:43:44

I just found out that images can have more than 20KB of EXIF data. Not really an issue with 2MB files, but if you have small thumbnails this really adds up. I use mogrify often to resize, and I can use mogrify -strip to remove the EXIF data. However, if I use Nautilus Image Converter there is no way to strip this data. Is there something in the configuration I can set so it always automatically adds the -strip flag to the command?


More From » mogrify

 Answers
2

I downloaded the code for Nautilus Image Converter and been through it configuration file and I dont think that this is possible from configuration file. But, if you open nautilus-image-resizer.c and take a look at line 320, you will see the following code:



gchar *argv[6];
argv[0] = "/usr/bin/convert";
argv[1] = filename;
argv[2] = "-resize";
argv[3] = priv->size;
argv[4] = new_filename;
argv[5] = NULL;


as you see, this is where the arguments for Imagemagick convert utility are being created. I think if you change this to following, it should solve your problem:



gchar *argv[6];
argv[0] = "/usr/bin/convert";
argv[1] = filename;
argv[2] = "-resize";
argv[3] = priv->size;
argv[4] = "-strip"
argv[5] = new_filename;


DISCLAIMER: I havent tried this. This answer is solely based on my limited understanding of the Nautilus Image Converter code. So I would recommend to backup your images before using the modified version.


[#44681] Sunday, November 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
eanda questions
Tue, Nov 22, 22, 15:24, 2 Years ago
Sat, Oct 16, 21, 23:48, 3 Years ago
Sun, Jul 3, 22, 09:38, 2 Years ago
Thu, Feb 3, 22, 14:33, 2 Years ago
;