Simple Feature request-Don't reprocess an image if not reqrd

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
markgowdy

Simple Feature request-Don't reprocess an image if not reqrd

Post by markgowdy »

We need to update the IPTC meta-data in JPGs, so we manipulate an 8BIMTEXT profile file and use 'convert' to embed it into a JPG.

This works fine, except that the new file is a bit bigger, and the image part has a different signature.
(in other words, it is re-processing the image to create a completetly new jpg)

Is there a way when generating the new file, to keep the original image part untouched (so it has the same signature), but to simply embed the 8BIMTEXT profile?

Either get it to auto detect when it does not need to re-process the image, or add a flag so that we can tell it when to skip the re-processing bit.

I suspect that a secret flag would be a 'quick win' that would solve my problem, and you could put the auto-detect thing on your future 'todo' list.

(or is their an easier way for me to achieve this?)

Kindest Regards,

Mark
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Simple Feature request-Don't reprocess an image if not reqrd

Post by magick »

Use exiftool.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Simple Feature request-Don't reprocess an image if not reqrd

Post by anthony »

Yes it would be nice, but IM is a general image processor, and what you ask for is specific to a type of image file format. That is beyond the scope of what Im is designed for.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
markgowdy

Re: Simple Feature request-Don't reprocess an image if not reqrd

Post by markgowdy »

Yes it would be nice, but IM is a general image processor, and what you ask for is specific to a type of image file format. That is beyond the scope of what Im is designed for.
I suspect this feature would apply to any image format that has metadata that can be manipulated (and not just JPGs).

I am looking into exiftool anyway (and it does look pretty good).
Although I would much rather stick with using IM, because it almost works perfectly for what I (and probably others) need.
I had spent some time refining our 8BIMTEXT file manipilator (making it work with different text encoding, etc).

Anyway, I will leave it with you. In the meantime, I will get my head around exiftool.

Thanks anyway,

Mark
matt1985

Re: Simple Feature request-Don't reprocess an image if not reqrd

Post by matt1985 »

You have to apply the feature to any image format that has metadata that can be manipulated (and not just JPGs).
Post Reply