-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix output filename tagging with "_embed.jpg" taking 1 char from original name #2
Comments
Thanks for the fix-- much appreciated. Would you submit it as a patch? |
Also, in PixelKnot, we didn't want the secret file named "XXX_embed.jpg" because that's a glaring flag that you've got a secret message embedded in a jpeg! So, maybe your patch should address that: what do you think would be a better naming convention? |
Since Github doesn't allow to attach a file to an issue here it is:
|
And regarding the secret file name, while using the camera for the input, I would expect just one file named and located as per the device's camera system (i.e. IMG_0000001.jpg at /storage/sdcard0/DCIM) so it will be placed among any other image taken with the default camera application. |
Right now if no output filename is provided, F5Android library defaults to replacing the original extension by "_embed.jpg" but while doing so, it also messes up last char of original name. Example:
IMG_0001.jpg becomes IMG_000_embed.jpg (last 1 is accidentally chopped)
Fix:
Please change line 60 of Embed.java into
String extension = this.file.getName().substring(this.file.getName().lastIndexOf(".") );
Thanks.
The text was updated successfully, but these errors were encountered: