-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
Imgur upload functionality #311
base: main
Are you sure you want to change the base?
Conversation
fix formatting
Add files pertaining to imgur upload
Added a bunch more goodies, still a lot of work to do. But the imgur upload is working, should I have a gtk text box to show the link of the file or just have it open in a web browser? Take a look when you get a chance it is still pretty messy atm. TODO:
|
Destroy file chooser dialog after confirming save location, as it interferes with the share dialog.
Added glib error handling, code formatting and now imgur link opens in browser.
Changed spacing between buttons.
Added #if HAS_GTK_SHOW_URI_ON_WINDOW for users using gtk 3.22 and above.
Just a side note we cannot upload webm files to imgur. |
pass the file extension over to check if we can upload to imgur.
Checks for file format and deselects imgur upload option for file extentions mp4 and webm as they are not supported through the imgur upload api.
Checks for file format and deselects imgur upload option for file extentions mp4 and webm as they are not supported through the imgur upload api.
Checks for file format and deselects imgur upload option for file extentions mp4 and webm as they are not supported through the imgur upload api.
If the user used mp4 or webm print a debug message telling them it is not supported for upload to imgur.
It now centers on the parent window.
If an option is unavailable automatically select the other row and display the check image. ex. Upload to imgur option is unavailable for mp4 and webm, it automatically select the option for opening in the file manager.
Hey, Would you like giving a try to Up2Share instead (https://up2sha.re)? I’m looking for an app that can serve as a desktop client to record image/gif/videos. We support webm/mp4/gif uploads and previews as well. The current API is behind an API token but I’m sure we can work on public endpoints easily. Let me know what you think. |
@cocochepeau once we get this branch merged we will look into other options for uploads, thanks for the heads up! |
Thanks - feel free to ping me if you need anything. :) |
@phw everything seems to function well enough, I am not sure how to proceed when you get a chance can you give this a test. I am going to need some help integrating this.. not sure what is the best way yet. |
@phw Have you had any time to take a look yet? |
Checks for file format and deselects imgur upload option for file extentions mp4 and webm as they are not supported through the imgur upload api.
If the user used mp4 or webm print a debug message telling them it is not supported for upload to imgur.
It now centers on the parent window.
If an option is unavailable automatically select the other row and display the check image. ex. Upload to imgur option is unavailable for mp4 and webm, it automatically select the option for opening in the file manager.
Added const variable for client id, passed the file object rather than uri, added descriptive names of rows, and hid rows if the option is not available, put the imgur upload code in seperate function, change the upload to non blocking message via soup.
Ok now works great with meson, just need to have libsoup installed. |
@phw Love it you could take another look :) |
Hello there! It would be a great feature, but i'm not sure if should be a built-in feature. I'm a fan of Shutter for image capture and editing and because it lack upload to diferent servers a wrote this code that listen for changes in a folder and upload it to Dropbox. https://github.com/jcarizza/drosh/ Maybe we can make a side project that listen for new files and upload them to Imgur, Dropbox or what ever. |
any progress on this ? would hate to see this rot |
@gort818 i will be happy to test. Just need a hand with building it. In the README it says:
first question: how do i create test binary without polluting my currently installed peek app? I think this may be called an 'out of source build' right? second question: |
@luzpaz Yeah just skip the install command, and just run ./peek from the build directory. |
@gort818 I pulled your branch, I ran the following:
but the peek binary wasn't created. |
|
@luzpaz It compiled successfully . I don't remember where it puts the executable in builddir/src |
@gort818
Sorry |
@luzpaz ok I updated it .. should work now give it a shot :) |
rebased and built. Still crashes:
|
@luzpaz I should have read your error :(
copy data/com.uploadedlobster.peek.gschema.xml to /usr/local/share/glib-2.0/schemas/ and then run: glib-compile-schemas /usr/local/share/glib-2.0/schemas/ |
I'll try tomorrow. Will report then |
@luzpaz did you give it a test? |
Yea, tried but needed to reset my environment. Will try again in the next few days. Sorry for keeping you hanging. |
@phw do you mind also testing this ? |
@phw ping |
Added libsoup and json-glib so we can use the imgur api to do an HTTPS POST, and parse the json that is returned.
@phw let's keep this open as I push changes to this branch