-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Save "raw" picture in history #4701
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
Comments
Can I work on this issue? |
@deek121477 Yes thanks! |
Thank you for assigning me this issue @nicolas-raoul |
It is a good first issue in the sense that it is limited to a rather specific area of the app. On my Pixel 4 phone the default camera has a setting called Unfortunately I just discovered that DNG file upload is not implemented yet: https://phabricator.wikimedia.org/T21153 So I suggest starting with "HDR originals" rather than RAW, since they use JPG rather than DNG.
So for now the implementation would be:
|
Thank you so much for giving the guidance for approaching the issue. |
While uploading images on the commons app I have uploaded only 1 image as there was no option for 4 images to be uploaded. Here I am attaching the link to the image that I have uploaded: |
@deek121477 At https://commons.wikimedia.org/wiki/File:Air_is_wild_with_the_leaves.jpg you can see a link called |
Okay. I will try. |
While cloning git@github.com:deek121477/apps-android-commons.git I am getting a message of: [ permission denied(public key) Also, is HAXM needed? |
Have you tried all troubleshooting steps listed at https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey ? |
Not yet. I will try |
Can I use HTTPS instead of SSH? |
I think HTTPS would not allow you to make changes (I could be wrong). You can start with HTTPS, though. Just make sure to make backups to not lose your changes. |
Okay.I will continue with HTTPS, and make sure about my backups too. |
Actually, I tried making changes in the code |
Can you please help me? |
Hi @deek121477, |
No.I haven't found the chain of method calls |
@deek121477 I would suggest running the app in debug mode from your IDE (such as Android Studio), setting breakpoints, and actually uploading a picture using the app. |
@nicolas-raoul |
@deek121477 In case you're still looking for information about breakpoints, you could take a look at this resource: Breakpoints - Debug your app | Android Developers. You could also read the full guide here: Debug your app | Android Developers |
Hi @nicolas-raoul Can I take this up? |
@deek121477 Any progress on this? :-) @bhavanagarlapati Please take one issue at a time. Do not hesitate to come back to this one after sending a pull request for your currently assigned one. :-) |
No |
@deek121477 Do you have plans to pursue this further? It's totally fine either way 🙂 |
is someone working on this? I wanna try this |
@XxBrezxX Please focus on one issue at a time :-) Thanks for your enthusiasm! |
Has this issue been completely resolved? Can I try this question? I'm using an Apple phone and I don't know if I can try this problem. |
Not sure if i can try on this issue. |
@ZIYANGSONG2003 I don't think an Apple phone would help here sorry! :'-( @antungchen It is yours! |
@antungchen Any progress to share? :-) |
@antungchen Unassigning now due to lack of response. Feel free to ping us if you're still interested in looking into this issue. |
Hi @nicolas-raoul, |
@ChristoJobyAntony Yes you can have it if you want. Thanks! :-) |
@nicolas-raoul I was able to set up the dev environment and play around the application. To simulate the situation, I had taken an image in RAW + JPEG format in my Pixel 7. The JPEG and the RAW file is saved in the same folder as |
The existing app code lets the user select a JPG image. Once the user has chosen a JPG, your new code should:
|
Hi @nicolas-raoul thank you for the breakdown on the implementation idea. I am currently trying to figure out the codebase to better understand the upload flow. I was able to dig the software design documentation to get a high level understanding of the flow. However, I am unable to identify the particular classes handling the upload logic, and I am unable to set up the debugger. My current setup uses Android studio to build and run the application on my Pixel 7 in the |
Would appreciate any direction in this regard. I am quite stuck with the codebase and not able to find any concrete documentation to help me understand the application design. |
@ChristoJobyAntony When you upload an image, you will see some debug info in logcat. You can then find these log instructions in the code. :-) |
@nicolas-raoul Thank you for your suggestion, I was able to set up the debugger to break on one of the functions I suspected had to do with the Image being picked. From this, I sort of traced the call of functions that are called when a file has been picked. (
My understanding of the codebase is very minimal, I am sort of making a lot of assumptions here. Since I only have a couple of days to work on this project, I would appreciate your suggestion on what would be the most optimal pathway for this solution ? |
Approach 2 is the one to use. Thanks! :-) You may want to experiment with uploading a new version of a file on the Wikimedia Commons beta server https://commons.wikimedia.beta.wmflabs.org/ |
Thank you for the prompt response. As per your suggestion I tried to upload a new version (file) of the file to the beta server, my key takeaways were:
|
@ChristoJobyAntony Thanks a lot for the research! Unfortunately it seems like Wikimedia (our upstream) has still not implemented DNG upload, please accept my apologies for missing that! It means it will unfortunately not be possible to implment this for now :'-( Upstream ticket: https://phabricator.wikimedia.org/T21153 |
@nicolas-raoul Oh, I see, thank you for the heads-up. I have been looking for a good first issue to work on for a very long time. I would greatly appreciate your suggestion on any issue I could work on which would help me get to know the repo a bit better. Also, quite frankly, I need to contribute an OSS repo as a part of Uni assignment. And our team choose this repo since it was very well maintained and active. I would love to help this repo in any way possible. Thank you :-) |
@ChristoJobyAntony First this should be an easy one: #5855 , then you can try this more interesting one, still not too difficult but touching on database: #5808 |
Problem: Smartphones increasingly use post-processing and AI to make picture more vivid/interesting for instance by exaggerating colours or blurring the background. Unfortunately that often makes the pictures less representative of reality. The original is lost.
Idea: Also store a "rawer" version of the picture, if the camera app lets us have it. That one could be saved first, and then the post-processed picture could be saved as a new version of it. All versions stay visible in the file history, making it easy for user to decide which version they want to use:
Note: The format and filenames of the "raw" versions (when they are saved) are very model-dependent and settings-dependent, but hopefully we can implement this for one model/setting as a proof of concept.
The text was updated successfully, but these errors were encountered: