Skip to content
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

Black bar appears when force cropping jpgs #501

Open
preid42 opened this issue Mar 14, 2023 · 0 comments
Open

Black bar appears when force cropping jpgs #501

preid42 opened this issue Mar 14, 2023 · 0 comments

Comments

@preid42
Copy link

preid42 commented Mar 14, 2023

Expected Behavior

When I use force crop on a jpg with any width, I should get a cropped image without a black bar on the right side of the image.

Current Behavior

Currently when adding a jpg that has a width odd number width (example: 621x460), after the forced crop we're left with a black bar on the right side. This currently not only effects our use but also the example site for filestack as well.

Possible Solution

fix the way the calculation of the crop when adding jpgs with odd pixel width

Steps to Reproduce (for bugs)

  1. Add new image with an odd pixel width and force crop enabled
  2. Hit save to force crop image
  3. Image is now cropped with a black 1-2px black bar on the right

Additional Screenshots

  1. Adding new image that is 621x460
    bolton-odd-width

  2. hit save to force crop

  3. Now see the black bar
    cropped

Context

Your Environment

  • Version used: 3.25.0
  • Browser Name and version: all browsers
  • Operating System and version (desktop or mobile): MacOS and Windows
  • Link to your project: Private Reop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant