Page 1 of 1

Non-ASCII characters in filename after rename

PostPosted: Fri Dec 31, 2021 1:30 am
by ruralcricket
I'm trying to rename some image files using the Add(7) function. In the add box: "<(Dimensions)> ~" which I believe should add the image dimensions (e.g. 680 x 1024). The resulting filename has characters that don't show up in Explorer, but do show up on the command line.

e.g. the file "03.jpg" gets renamed thus Image instead of "680 x 1025 ~ 03.jpg. (see this image:https://imgur.com/pWI9ji7)

Note: This does NOT occur with other properties such as Date modified, Content type. But does happen for Dimensions, Horizontal resolution, and Vertical resolution.

Using Windows 10, BRU version 3.4.3.0 x64bit.

Using the tool exiftoolexehttps://exiftool.org/) does not have this issue. This is the command to rename a file by appending the image size to the original filename.

exiftool.exe "-filename<${imagesize}-%f.%e" 05.jpg

Re: Non-ASCII characters in filename after rename

PostPosted: Fri Dec 31, 2021 5:05 pm
by therube
Your imgur link does look to point to an image?

How about you post, link to, the particular .jpg in question.

Re: Non-ASCII characters in filename after rename

PostPosted: Fri Dec 31, 2021 9:01 pm
by ruralcricket
This URL -https://imgur.com/pWI9ji7 does show the image of the file after being renamed. I tried copy/paste the filename and the unprintables do not show up.

It looks something like unprintable680 x 1025unprintable ~ 03.jpg

https://imgur.com/pWI9ji7

Image

Re: Non-ASCII characters in filename after rename

PostPosted: Tue Jan 04, 2022 4:22 am
by ruralcricket
Request for example jpg.

See https://drive.google.com/drive/folders/1ueHrUjgIb1cJtaV8NPkdf4Teks5Ft8K_?usp=sharing
There are two versions of the file before and after renaming. If you download the file with the dimension prefix, google drive with replace the unprintable with an underscore.

I used the Add operations with a prefix of [<(Dimensions)>]