Giter Site home page Giter Site logo

fuzzyideas / clop Goto Github PK

View Code? Open in Web Editor NEW
462.0 4.0 22.0 415.49 MB

Clipboard optimizer for macOS

Home Page: https://lowtechguys.com/clop

License: GNU General Public License v3.0

Swift 99.26% Makefile 0.65% Objective-C 0.09%
clipboard gifsicle jpegoptim macos pngquant

clop's People

Contributors

alin23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clop's Issues

Optimises the same file in a never-ending loop

I have a watch folder specified that I will drop an image into and at times the image will re-optimise over and over

E.G. I'll drop the image into the folder (say 200 KB) and it will immediately pick it up and optimise to say, 40 KB

Then it will carry on in a loop until the same file is now mere bytes in size. I've just done 2 files and the one is at 204 bytes while the other at 506 bytes and both are still looping?

Today it appears to be extra bad in that it is doing with all

20240209-Edit

See video:

clop-issue-2024-02-09.mp4

Cannot find X in scope

Hello! Noob here, so I might be reporting something very basic.
I'm getting several errors. Most of them, "Cannot find X in scope", where X is Regex, Window and SMAppService.
My guest is I'm missing some dependency, but as I said, I'm new to Mac App development.

Thanks for sharing! I'm using this as a learning project and plan to make some changes (would not say improvements yet)

Respect Strip EXIF Metadata for video optimisation

When Strip EXIF Metadata is disabled video optimisation still remove meta such as coordinates.

How to reproduce:

  • Get a video with Latitude and Longtitude (like from iPhone with default Camera settings), can check with CMD+I
  • In Clop settings disable option Strip EXIF Metadata
  • In Finder right click on a video and choose Optimise with Clop
  • After optimisation metadata is missing

It would be nice to respect this setting also for video optimisation.

pro version?

release notes say "Completely free version before the Pro features were introduced..."

where is the pro version? I couldn't find any mention of it anywhere...

Clop & Clipboard: redundant optimising when saving screenshots

I use Clop in combination with CleanShot. I have Optimise Clipboard turned on, as well as the option where all the files I save in ~/Screenshots are processed. However, when I decide to save a screenshot (⌘+S in CleanShot) what would be nice is that Clop could somehow detect that it is in fact the same image data and use the clipboard data for saving instead of doing it again. Right now, it seems like a bit of CPU usage for nothing.

Here's a little video to illustrate when I mean:

20230921_224844_Arc.mp4

Install with Homebrew?

I love what you make. Is there a way to install it with Homebrew? (I would love to add it to my Brewfile and have it be available everywhere I am.)

Survey ImageOptim output and utilize best practices? And more...

Your tool caught me by surprise. It's very attractive to have the capacity to have optimized pasteboard/clipboard contents that are similarly converted to the most optimal format.

First, have you per chance performed a survey with ImageOptim.app to perhaps ascertain if it's using any options / settings that are superior to what Clop presently does? Eg, I use these generally:
settings

Secondly, I this doesn't seem immediately feasible, but long term I've been DYING to find a Skitch 1 (NOT 2) and NOT CleanShot (or others) clone. CleanShot guys are kinda close'ish, but after a couple years of begging, I don't think they'll ever warm up to a clone approach to Skitch. Making an outright clone of that would be pretty much the perfect / ideal annotation / capture app. There's a pretty large consensus to this if you look at old MacUpdate and other reviews and commentary. The UX was about as close to perfection as anyone has ever seen and if you were to make such a thing, you'd get my donation/purchase.

Third, a CloudApp (now known as Zight), but self hosted that you could integrate for file sharing into this kind of work flow would be the icing and bucket-o-cherries on top.

It empties encrypted PDF

MacOS 14.2.1
Clop 2.5.2

I downloaded several encrypted PDFs to my Downloads folder where I have automatic compression of PDFs, images and videos enabled. The result was that Clop converts the encrypted PDF to an empty one. It should check that the PDF is not encrypted before processing it.

Auto-optimization breaks cmd+option+v for moving files in Finder

In Finder, when you want to move files with the keyboard, you have to use cmd+c and then cmd+option+v. There's no ctrl+x and ctrl+v workflow like in Linux and Windows.

With Clop installed, when you cmd+c an image, it creates a new optimized version. And when you cmd+option+v, it moves the optimized version to the desired location, leaving the original in place.

While I'm glad the original is safe, this breaks the keyboard-driven workflow for moving files.

I read this issue where you mention we could have the optimization happen on paste with cmd+v, but that it needs more permissions.

Personally, I'm fine with needing more permissions and would love to have this option 🙌

PNGs are converted to JPG

Instead of optimizing PNG files, Clop creates a JPG version of my PNG files. I tried both, the direct download version and from Version 2.4.0 via Setapp (on M1).

Format settings are left to default (though I don't even see an option to deliberatley convert all png to jpg.
CleanShot 2023-11-30 at 09 24 40@2x

disable auto-optimize

at present, even with null watch paths and all hotkeys disabled, it seems ⌘ + c triggers an optimisation (bottom right popup appears)

this is undesirable:

  • when the optimisation fails (often, possibly FUSE/NFS related), the source file is replaced with a 0 byte broken file
  • when the optimization succeeds, the source file is replaced (!!) with clop's output, without my having 'approved' this - the only action taken was ⌘ + c

much more often than not, when copying, i don't want optimization to occur, for example if transferring full fat pictures from a camera to a network share - i want the originals!

ideal scenario (for my use case): clipboard copy does nothing by default, but can be manually instigated via defined hotkey (my choice of modifier + C, per Clop's settings pane), or even better, with a similar command that optimizes then pastes
is this possible? if so, please advise what i'm missing

further, more philosophically, is it sane to have (potentially, and at present empirically) destructive defaults?

fwiw, i'd find ($) value in this utility if it behaved as requested - an on demand background clipboard optimizer for images/gifs

v2.0.3 ie latest, but also also Sonoma 14.0 Beta (23A5312d), possibly this is the problem?

Optimization failed

Hey,

Great app!

I'm trying to optimize an mp4 file, and it doesn't matter if it's big or small I always get "Optimisation failed"

Any ideas what can be the problem?

Feature Request: Crop videos

First off, loving the app so far and have used it to replace ImageOptim & Handbrake in my workflow (not sure about PDF Squeezer yet). Anyway, I was thinking it would be a really useful feature to be able to crop video directly in Clop (via the right-click context menu). Currently, I need to go through Apple Photos (Right Click -> Share -> Add to Photos, Photos -> Edit -> Crop, Photos -> File -> Export -> Export 1 Video) in a very tedious process just to be able to crop a clip natively. Would it be possible to introduce that as a feature?

Optimizing Image Compression with Clop: A Workflow Enhancement

When using Clop for image compression, specifically for converting JPEG or PNG files, a notable issue arises. The tool employs two distinct processing logics depending on the file detail, which complicates the process of directly overwriting the original images. This approach introduces an additional step and associated costs for file replacement.

I want to directly overwrite the original file to reduce the number of steps.

Finder funniness

You had me there for a few minutes. I ran Clop through the Apple Services Menu and realised there is nothing in the Finder to tell me anything happened because the Date Modified doesn't change. The only way to tell is the Date Last Opened is wiped out and so is the Tag. To me this is a bug not a feature.

PDF compression: Chinese text becomes garbled

HI!

I'm encountering an issue while using the compression tool to compress PDF documents saved from Safari. The web pages are in Chinese language. After compressing the PDF, copying the text from within the document and pasting it results in garbled characters. Additionally, the PDF is not searchable for Chinese text. However, searching and copying English text within the PDF works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.