[WIP] PNG convert/pngcrush extension#405
Open
threadreaper wants to merge 1 commit intolinuxmint:masterfrom
Open
[WIP] PNG convert/pngcrush extension#405threadreaper wants to merge 1 commit intolinuxmint:masterfrom
threadreaper wants to merge 1 commit intolinuxmint:masterfrom
Conversation
Contributor
|
Thing is- a nemo action may be more easier to maintain. If it was to like open up a new dialog and have lots of other options it'd make sense. Otherwise this may be best to be put into nemo-image-converter? |
Author
|
Oh I agree actually. But since image converter isn't mine I thought I'd just start with a pull request like this and see what came out of the discussion. If you'd like me to modify image converter to add this and resubmit I will. Sent via the Samsung Galaxy A11, an AT&T 4G LTE smartphone
-------- Original message --------From: Joshua Peisach ***@***.***> Date: 3/26/21 7:25 AM (GMT-06:00) To: linuxmint/nemo-extensions ***@***.***> Cc: threadreaper ***@***.***>, Author ***@***.***> Subject: Re: [linuxmint/nemo-extensions] PNG convert/pngcrush extension (#405)
Thing is- a nemo action may be more easier to maintain. If it was to like open up a new dialog and have lots of other options it'd make sense. Otherwise this may be best to be put into nemo-image-converter?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Contributor
|
Well It'd probably end up being rewritten in C, using something like the ImageMagick API |
Author
|
That would probably improve the performance. I may expand this to support conversion to multiple image formats and handle a few other operations as well. I just happen to be doing a project that requires dealing with a ton of images and they need to be PNGs with clean iTxt chunks, so I produced this real quick. I just thought I'd share in case it was useful to anyone else. I think something like a multi-format "swiss army knife" for basic image operations would be more justified in being it's own separate extension. If I do decide to tackle that project I will probably consider doing it in C.Sent via the Samsung Galaxy A11, an AT&T 4G LTE smartphone
-------- Original message --------From: Joshua Peisach ***@***.***> Date: 3/26/21 1:17 PM (GMT-06:00) To: linuxmint/nemo-extensions ***@***.***> Cc: threadreaper ***@***.***>, Author ***@***.***> Subject: Re: [linuxmint/nemo-extensions] PNG convert/pngcrush extension (#405)
Well It'd probably end up being rewritten in C, using something like the ImageMagick API
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Member
|
Hi, I'll mark this as WIP. In Cinnamon 5.2 we're planning to introduce a new spice type: nemo actions. This could be done with a single text file as a nemo action, not just easier to maintain but easier for people to install, review, etc.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an extension for Nemo that adds context menu shortcuts to bulk-convert images to PNG format, and optionally optimize them with pngcrush. Obviously, pngcrush is a dependency, but if it's not present, the image conversion pieces should still work. Depending on how many images are selected to convert/crush, the process can be lengthy, so a progress window is shown to the user. Python dependencies are pillow and PySimpleGUI, both available on PyPi.