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 comment

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 comment
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 comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...