Skip to content

Fix output filename tagging with "_embed.jpg" taking 1 char from original name #2

Description

@pablojr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions