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

Feature: Add dimensions to hover on image file #14983

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

btomblinson
Copy link
Contributor

@btomblinson btomblinson commented Mar 18, 2024

Resolved / Related Issues

  • Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
    Closes Feature: Show image resolution on hover information #14975

Validation
How did you test these changes?

  • Did you build the app and test your changes?
  • Did you check for accessibility? You can use Accessibility Insights for this.
  • Did you remove any strings from the en-us resource file?
    • Did you search the solution to see if the string is still being used?
  • Did you implement any design changes to an existing feature?
    • Was this change approved?
  • Are there any other steps that were used to validate these changes?
    1. Tested the changes and made sure it matched what the native files app shows

Screenshots (optional)
Screenshot 2024-03-18 125521

@btomblinson btomblinson changed the title Add dimensions to hover on image file #14975 Feature: Add dimensions to hover on image file #14975 Mar 18, 2024
@btomblinson btomblinson changed the title Feature: Add dimensions to hover on image file #14975 Feature: Add dimensions to hover on image file Mar 18, 2024
@yaira2
Copy link
Member

yaira2 commented Mar 18, 2024

@btomblinson did you test to make sure the tooltip for non-images works as expected? It might also be worth checking each of the image formats to make sure it works correctly.

@btomblinson
Copy link
Contributor Author

btomblinson commented Mar 18, 2024

Yes I tested hovering over non image files and folders, since it’s relying on the existing helper to detect if it’s an image file I figured that would be good, I can test a .jpg too

@btomblinson
Copy link
Contributor Author

Tested with a .jpg as well

Screenshot 2024-03-18 143011

@hishitetsu
Copy link
Member

With the current implementation, wouldn't it display properly in a zip file or on an FTP server?

@btomblinson
Copy link
Contributor Author

With the current implementation, wouldn't it display properly in a zip file or on an FTP server?

It doesn't

Screenshot 2024-03-21 225941

@btomblinson
Copy link
Contributor Author

With the current implementation, wouldn't it display properly in a zip file or on an FTP server?

It doesn't

Screenshot 2024-03-21 225941

I just noticed too in the above screenshot there’s a .png below and you can faintly see the dimensions 😉

@hishitetsu
Copy link
Member

With the current implementation, wouldn't it display properly in a zip file or on an FTP server?

It doesn't
Screenshot 2024-03-21 225941

I just noticed too in the above screenshot there’s a .png below and you can faintly see the dimensions 😉

I mean image files inside an archive. Dimensions shouldn't be displayed if they can't be retrieved.

image

@hishitetsu
Copy link
Member

If there are corrupt image files in a folder, the folder cannot be opened. The procedure is as follows:

  1. Create a text file.
  2. Change the extension of the file to png.
  3. Try to open the folder which contains that file.

@hishitetsu hishitetsu added changes requested Changes are needed for this pull request and removed needs-review labels Apr 2, 2024
@yaira2 yaira2 force-pushed the main branch 3 times, most recently from 32de19b to ba56951 Compare April 4, 2024 21:47
@yaira2
Copy link
Member

yaira2 commented Apr 8, 2024

@btomblinson can you take a look at that issue?

Copy link
Contributor

@Jay-o-Way Jay-o-Way left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing

src/Files.App/Data/Items/ListedItem.cs Outdated Show resolved Hide resolved
@0x5bfa
Copy link
Member

0x5bfa commented Apr 18, 2024

If there are corrupt image files in a folder, the folder cannot be opened. The procedure is as follows:

  1. Create a text file.

  2. Change the extension of the file to png.

  3. Try to open the folder which contains that file.

@btomblinson Can you work on this?

@btomblinson
Copy link
Contributor Author

I am out of the loop, what is meant by corrupt image? Can I have an example?

@0x5bfa
Copy link
Member

0x5bfa commented Apr 18, 2024

He means an invalid image file; for example, it doesn't have data (0 byte) or it has been modified with notepad or something, resulting in corruption.

src/Files.App/Data/Items/ListedItem.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes are needed for this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Show image resolution on hover information
5 participants