|
|
#1 |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
|
AdjustImage Feature Improvements
I have made modifications to the AdjustImage(image editor).
Because I downloaded version 2.8.1 and modified the files locally, I was unable to distribute the changes via Git. I modified only three files: AdjustImage.cpp, AdjustImage.h, and AdjustImage.ui. You can download the attached file. You can test the image editor by replacing the sigil.exe file in your version 2.8.1 installation folder. The image editing feature is very useful, but I noticed a few inconveniences while using it and made several improvements. I improved the image placement and crop features, and added eraser and refresh functions. Crop
Eraser
For more complex edits, using an external editor would be more practical. Please review whether this code can be incorporated into the source. Let me know if you run into any issues during testing. If there are areas that need improvement, I will be happy to update them. |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,724
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It would seem to me that an eraser tool would already cross that "For more complex edits" threshold for using an external editor. But we'll certainly let others give their opinions on it.
|
|
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,024
Karma: 3761621
Join Date: Jan 2017
Location: Poland
Device: Various
|
I’ll be honest – I practically never use AdjustImage, but of course I couldn’t resist and decided to test this feature.
Crop – it really does work better; I feel like I have more control over the cropped area. Eraser – hmmm… it works a bit clunkily. I understand it could be used to remove some clutter from a simple image, but I don’t think it’s worth it. Especially if there were more images like that. But – as I mentioned – I’m not the target audience. |
|
|
|
|
|
#4 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,994
Karma: 7518950
Join Date: Nov 2009
Device: many
|
The crop improvements look useful, but we really do not want to get into the recreate a full ImageEditor game and freehand erasure is one of those items. As the name suggests this tool is meant for simple adjustments.
My 2 cents. Last edited by KevinH; Yesterday at 09:50 AM. |
|
|
|
|
|
#5 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,994
Karma: 7518950
Join Date: Nov 2009
Device: many
|
Okay, I took a closer look at the code. I am definitely not interested in all the added Erasure bits as it just adds too much code for something most people are just not going to use.
So if you would like to contribute code to Sigil please remove the added erasure code and its ui changes leaving only the improved crop functionality. Then create a github pull request so we can properly review the code changes involved and approve/merge them if they look good. Please do indicate if these changes are entirely AI based or not so I understand how much testing and review was done and what if any license implications these changes may entail. Thank you. |
|
|
|
|
|
#6 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,335
Karma: 182161621
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I tried the modifications. I also liked the cropping tool but I didn't find much use for the eraser tool.
|
|
|
|
|
|
#7 | |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
|
Quote:
I made this using AI. I've taken the feedback regarding the eraser into account, so I'll remove it and post the updated code. |
|
|
|
|
|
|
#8 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,994
Karma: 7518950
Join Date: Nov 2009
Device: many
|
Do you have a github account and do you know how to make an official Pull Request?
That is the best way for submitting code to Sigil as it automatically checks the proposed changes across all platforms, checks for merge irregularities, allows for easy code reviews, and gives you specific credit for those changes in our commit history and across github. If you just produce new .ui, .cpp, .h files then I must diff them against our tree and make the changes myself and can only thank you in the commit message but the history of ownership and credit for the contribution is effectively lost. So please consider using a github Pull Request to make your contribution. Last edited by KevinH; Yesterday at 08:03 PM. |
|
|
|
|
|
#9 | |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
|
Quote:
I removed the eraser tool and included a refresh button (next to Redo and Undo) that I didn't mention earlier. I added this feature because it was inconvenient having to close and reopen the image tab to see modifications made with an external editor while the tab is open. Last edited by byword; Yesterday at 09:08 PM. |
|
|
|
|
|
|
#10 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,724
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You probably just committed to your own fork. You'd need to create a pull request for us to be able to merge your changes.
|
|
|
|
|
|
#11 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,724
Karma: 212474403
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Looks like the Pull Request came through. Thanks!
|
|
|
|
|
|
#12 |
|
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Improvements on notes | danielo515 | Onyx Boox | 1 | 09-03-2018 08:35 AM |
| How many 'improvements' do we really need? | Fozzybear | General Discussions | 61 | 04-15-2012 12:38 PM |
| Improvements for PRS900 | unknownhero | Sony Reader | 28 | 05-06-2010 06:29 PM |
| Most Important Improvements | TedPark | Sony Reader Dev Corner | 4 | 06-21-2008 11:04 AM |