Command: Actions, is it possible, to resize the image with data, style: width x height to send it to a Folder, without resizing the image in my audio file

Hello M3tag Community

In my audio file I have an image/jpeg 600x600, that I do not want to resize

Is it possible with the command: Actions

To program a data code: width x height
Example: Resize an image: image/jpeg 200x200 and send it to a Folder

c:\BSI32\Album Art

No, that is not possible.
You can resize an embedded cover and then export it to a folder with actions.
But you cannot have this resizing only with the export action and leave the embedded cover like it is.

You would have to do the resizing of the exported cover with an external program, This can also done with the help of the tools-feature of Mp3Tag.

Using only Mp3Tag's actions, you could only achieve your goal via a complicated detour which is really not recommended:
First, export the embedded cover in its original size.
Then reduce the size of the embedded cover using the corresponding action.
Export the reduced size cover as a file.
Import the exported large file back into the music file.
You would then also have to delete the exported large file manually.

Thank you @poster for taking the time to answer me

Thanks for your idea, for the complicated detour, as you wrote: which is really not recommended ...

It's already very good that I can extract my 600x600 images, with Mp3tag

It's true that with a Tools and a small utility program, this can be done without problem, thank you for the suggestion...

I use a small free utility called: PhotoFiltre 7, when it is well programmed, you open the program and 2 mouse clicks, it takes all my 600x600 image files without any modification in the folder and sends the images that I programmed 200x200 in another folder that I named and it is very fast the transfer speed for image files ...

Here is one of the many utilities that can be called with a command line and therefore as a tool:

If you don't want to install a (bunch of) new software, you also can download the portable edition of ImageMagick. The current portable version is ImageMagick-7.1.1-43-portable-Q16-HDRI-x64.zip.
The official download page for other versions and other operating systems than Windows can be found here.

After downloading and extracting the ZIP-Archiv, you get 22 files in one directory.
No Setup, no Install, no modification on your system at all, just a plain directory with some command line tools.

The command to modify all your existing PNG and JPG pictures (for example) in a specific source folder into pictures with 200 pixel WIDTH (keeping the aspect ratio) is
mogrify.exe -resize 200x "C:\Temp\IM-Test\T1\*.jpg" "C:\Temp\IM-Test\T1\*.png"

The most easy way to use mogrify.exe is to call it as new Tool and a Windows batch CMD file. Just pass the foldername (for example) from Mp3tag.

mogrify.exe always overwrite the source file!

Details and more examples

The command to modify all your existing PNG and JPG pictures into pictures with 200 pixel HEIGHT (keeping the aspect ratio) is
mogrify.exe -resize x200 "C:\Temp\IM-Test\T1\*.jpg" "C:\Temp\IM-Test\T1\*.png"

If you really want to modify your pictures to a fixed size with a WIDTH and HEIGHT of 200x200 (ignoring the aspect ratio, distorting your pictures!) then you can force mogrify.exe to do this using
mogrify.exe -resize 200x200! "C:\Temp\IM-Test\T1\*.jpg" "C:\Temp\IM-Test\T1\*.png"

There is an incredible amount of additional command line parameters. You can find some examples for -resize here.

Please note that the above examples modify your given pictures directly and without creating a copy in another folder. If such a copy would be necessary, some more commandline options would be necessary. Or you execute a COPY command in your CMD batch file before you mogrify the pictures.


Note (mostly for myself):

To leave the original picture untouched and create a copy with the resized file in an existing output folder with the individual suffix (width x height) you can use magick.exe with
magick.exe "C:\Temp\IM Test Dir\T1 - T\*.jpg" -resize 200x -set filename:f "C:/Temp/Existing Output folder for mogrified pictures/%t (%wx%h)" "%[filename:f].jpg"
Don't forget to use double %% characters inside a CMD batch as
magick.exe "C:\Temp\IM Test Dir\T1 - T\*.jpg" -resize 200x -set filename:f "C:/Temp/Existing Output folder for mogrified pictures/%%t (%%wx%%h)" "%%[filename:f].jpg"

This would create a copy of "My example picture.jpg" (1076x911 Pixels) from the given source folder, resize it to a width of 200 pixels and write it in the given output folder as "My example picture (200x169).jpg". The source picture remains untouched.

Hello @LyricsLover, thanks for the link & all the examples you wrote me about "ImageMagick-7.1.1-43-portable-Q16-HDRI-x64.zip .", I found it very interesting...

  • I think you use this software, you seem to know it well...

If I understood correctly in the end...

After having done the programming, which you gave me as an example, I use a Tools & a CMD file, for example I place it in the Tools CRTL+7, when I click on this Tools CTRL+7, my images will be converted to 200x200 in the folder that I programmed from my images which will be in the 600x600 folder which will not be modified...