Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
have you tried compiling Nautilus Image Converter after the below mentioned changes? – binW Jun 28 '11 at 9:29
up vote 1 down vote accepted

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.

share|improve this answer
I think you need to change gchar *argv[6]; to gchar *argv[7]; and add argv[6] = NULL; to the end. – Nathan Osman Jun 25 '11 at 21:49
@George-Edison: may be but I am not sure about that. The first argument of main() is argc i.e argument count, and second is argv[]. So convert should get the argument count along with the arguments. – binW Jun 26 '11 at 11:32
@binW, would it be a good idea to add instructions on how to recompile this package to incorporate the changes? – Christopher Kyle Horton Jun 27 '11 at 2:06
@Warrioring64: plua must be aware of how to compile because I couldnt find an installable package on Nautilus Image Converter site. all they are providing is the source so plua must have compiled and installed it before. – binW Jun 27 '11 at 6:31
@binW I have been looking for the aforementioned file (nautilus-image-resizer.c), but can not locate this. I need to compile from source to get this? It all sounds quite complicated, I am new to this. Is there no way to get this done without compiling? – user6019 Jul 1 '11 at 21:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.