ImageAlpha icon indicating copy to clipboard operation
ImageAlpha copied to clipboard

Slow startup on Sierra

Open simonrob opened this issue 8 years ago • 6 comments
trafficstars

I've just upgraded to a new laptop with Sierra, and ImageAlpha is now very slow to start.

Previously (Mountain Lion), the ImageAlpha window appeared after one "bounce" of the icon; now it takes 9-10 each time.

Do you know what might be causing this?

simonrob avatar Aug 14 '17 13:08 simonrob

The app is written in Python and ObjC, so on startup it needs to compile a lot of Python code. It should be less bad after the very first startup on a new system.

Still, these two are slow complex beasts, so I'm afraid they're out of my control.

If you're looking for something quicker, there's a "Lossy" option in ImageOptim (native app, starts quickly): https://imageoptim.com/mac

and I've got a basic web interface for pngquant here: https://imageoptim.com/online

These don't have a preview like ImageAlpha, but offer the same level of compression.

kornelski avatar Aug 14 '17 14:08 kornelski

Thanks - the slow start persists for me no matter how many times I open ImageAlpha, but I'll persevere because its interface is so useful for helping choose the level of compression required.

I'm a longtime happy user of both ImageAlpha and ImageOptim - thanks for all the great work. I'll try building locally and investigate to see whether I can contribute any changes to speed it up.

simonrob avatar Aug 14 '17 14:08 simonrob

I get the slow start (High Sierra, 12 bounces!) each and every launch. It's supremely aggravating.

Where is the compiled Python stored? I can then check it is where it should be.

Can't the Python be pre-compiled inside the app?

gingerbeardman avatar Jul 15 '18 16:07 gingerbeardman

Shipping pre-compiled code in the app won't make any difference, because code in the app itself is quite small. I wouldn't be surprised if all the code in the app was just 1% of the code Python runs on startup — while building wrapper objects for all of Cocoa.

kornelski avatar Jul 15 '18 20:07 kornelski

I recommend switching to ImageOptim's lossy mode instead. It uses the same compression, but it's all native and starts quickly.

kornelski avatar Jul 15 '18 20:07 kornelski

Thanks for the suggestion, but I really need manual control and visual inspection.

gingerbeardman avatar Jul 15 '18 20:07 gingerbeardman