Jump to content

Tiny PNG workflow [Updated to v1.2]


Recommended Posts

@xilopaint Yes, I tried to shrink one file at a time for four images.
Three images were okay, but the fourth had problem. See the debug report:

[16:13:17.121] Tiny PNG[Keyword] Processing complete
[16:13:17.126] Tiny PNG[Keyword] Passing output '' to Run Script
[16:13:19.294] STDERR: Tiny PNG[Run Script] 35:44: syntax error: A “"” can’t go after this identifier. (-2740)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  2  176k    2  3759    0     0  11606      0  0:00:15 --:--:--  0:00:15 11601
100  176k  100  176k    0     0   349k      0 --:--:-- --:--:-- --:--:--  349k
[16:13:19.298] Tiny PNG[Run Script] Processing complete
[16:13:19.299] Tiny PNG[Run Script] Passing output '1 file downloaded to /Desktop/TinyPNG. 
See ~Report~.txt for details.' to Post Notification
[16:13:26.143] Tiny PNG[Keyword] Processing complete
[16:13:26.145] Tiny PNG[Keyword] Passing output '' to Run Script
[16:13:32.356] STDERR: Tiny PNG[Run Script] 35:44: syntax error: A “"” can’t go after this identifier. (-2740)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  169k  100  169k    0     0   368k      0 --:--:-- --:--:-- --:--:--  368k
[16:13:32.372] Tiny PNG[Run Script] Processing complete
[16:13:32.373] Tiny PNG[Run Script] Passing output '1 file downloaded to /Desktop/TinyPNG. 
See ~Report~.txt for details.' to Post Notification
[16:13:38.067] Tiny PNG[Keyword] Processing complete
[16:13:38.076] Tiny PNG[Keyword] Passing output '' to Run Script
[16:13:40.104] STDERR: Tiny PNG[Run Script] 35:44: syntax error: A “"” can’t go after this identifier. (-2740)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 80  186k   80  149k    0     0   296k      0 --:--:-- --:--:-- --:--:--  295k
100  186k  100  186k    0     0   368k      0 --:--:-- --:--:-- --:--:--  367k
[16:13:40.117] Tiny PNG[Run Script] Processing complete
[16:13:40.117] Tiny PNG[Run Script] Passing output '1 file downloaded to /Desktop/TinyPNG. 
See ~Report~.txt for details.' to Post Notification
[16:13:44.151] Tiny PNG[Keyword] Processing complete
[16:13:44.164] Tiny PNG[Keyword] Passing output '' to Run Script
[16:14:45.429] STDERR: Tiny PNG[Run Script] 35:44: syntax error: A “"” can’t go after this identifier. (-2740)
curl: (3) <url> malformed
[16:14:45.443] Tiny PNG[Run Script] Processing complete
[16:14:45.444] Tiny PNG[Run Script] Passing output '1 file had problems.
See ~Report~.txt for details.' to Post Notification

And the workflow report:

FILE: /Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-1.jpg
Original size: 388140
Shrunk size: 180857
Ratio: 0.466

FILE: /Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-2.jpg
Original size: 371945
Shrunk size: 173374
Ratio: 0.4661

FILE: /Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-3.jpg
Original size: 394228
Shrunk size: 190620
Ratio: 0.4835

FILE: /Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-4.jpg
Problem downloading g-4_shrink.jpg

 

Link to post
  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

This workflow will take a set of PNG or JPG files and compress them using the online TinyPNG service. For more info on what it does to the image, see http://tinypng.com/ Usage: This workflow works

Thank you for this! Works great.

Hi Nik,   you need to launch Alfred with the "File Selection" hotkey, which you'll find at the bottom of this preference page: (I can't remember what the default hotkey is, since I've changed min

Posted Images

Hi, @xilopaint

Yes, the same result by using the file action.

I tried to shrink one file at a time.
The first one was okay, but the second had a problem. See the debug report:

 

[00:37:37.306] Logging Started...
[00:37:49.493] Tiny PNG[File Action] Processing complete
[00:37:49.496] Tiny PNG[File Action] Passing output '/Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-1.jpg' to Run Script
[00:37:52.124] STDERR: Tiny PNG[Run Script] 35:44: syntax error: A “"” can’t go after this identifier. (-2740)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 14  176k   14 26031    0     0  56031      0  0:00:03 --:--:--  0:00:03 55980
 94  176k   94  166k    0     0   112k      0  0:00:01  0:00:01 --:--:--  112k
100  176k  100  176k    0     0   119k      0  0:00:01  0:00:01 --:--:--  119k
[00:37:52.132] Tiny PNG[Run Script] Processing complete
[00:37:52.133] Tiny PNG[Run Script] Passing output '1 file downloaded to /Desktop/TinyPNG. 
See ~Report~.txt for details.' to Post Notification
[00:37:57.649] Tiny PNG[File Action] Processing complete
[00:37:57.651] Tiny PNG[File Action] Passing output '/Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-2.jpg' to Run Script
[00:38:58.627] STDERR: Tiny PNG[Run Script] 35:44: syntax error: A “"” can’t go after this identifier. (-2740)
curl: (3) <url> malformed
[00:38:58.631] Tiny PNG[Run Script] Processing complete
[00:38:58.633] Tiny PNG[Run Script] Passing output '1 file had problems.
See ~Report~.txt for details.' to Post Notification

And the workflow report:

FILE: /Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-1.jpg
Original size: 388140
Shrunk size: 180857
Ratio: 0.466

FILE: /Users/roman52/Disk/PSD/projects/Grove at Auburn/04 Gallery/Apartment/g-2.jpg
Problem downloading g-2_shrink.jpg

 

Link to post
On 12/24/2019 at 9:47 AM, Roman52 said:


Hello, @xilopaint
Thanks for your answers, I replaced this line - http://snpy.in/OlkpVK , but it didn't help, I still get this error "problem downloading" http://snpy.in/ZzDLvR

 

Did you rerun the tinypng_config keyword and entered your API key after making this adjustment? If not you're not using your own API key.

Edited by xilopaint
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...