Home / Topic / Issue with compress png button

Issue with compress png button

Home Kwiksher Forums Kwik 3 Bugs Issue with compress png button

Viewing 14 posts - 1 through 14 (of 14 total)
  • Fionnuala
    Participant
    #84107

    Hi

    I am having a problem with compress png button. I have only changed the thumbnail icon in the app and apart from that everything else is the same – the app size has increased from approx. 55mg to over 300mg. Is there an issue here or am I doing something wrong. I have pressed the compress png button, but it doesn’t seem to be compressing.

    Thanks

    Fionnuala

    Jorge
    Participant
    #84108

    Hi Fionnuala

    I have the same problem. Actually I was never been able to compress using the button.
    I have read all the posts in here and checked everything. I believe that I have everything ok, but still I can not manage to make it work.

    I do not know your exact situation. Did you you another tool to compress? If so, check your icons and launch images under the build folder. As soon as you Publish a page (even with a very minor change) Kwik republishes those images again and again.

    Hope this helps.

    Yamamoto
    Keymaster
    #84110

    the compress PNG button executes compress.command(MAC) or compress.bat(Win) in ~/Documents/Kwik folder
    To execute manually, open terminal console and drag the file to the console. Hit enter to run.

    If it does not work, the permission or the file path is not correct. (the permission is only for Mac)
    For the permission, type the following command in the console

    
    chmod a+x compress.command
    

    to check the file path for images, open it with text editor and check the file path inside. it is something like this

    
    start pngquant --ext .png -f --quality=60-95 "C:\Users\ymmtny\Documents\Kwik Test\Animations\build\images\*.png"
    
    Jorge
    Participant
    #84117

    Thanks Nayoa. Let’s see if I can now make it work.
    This is what I see when open the file compress.bat in a text editor.

    @echo off
    cd “C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\Panels\Kwik\PC”
    start pngquant –ext .png -f –quality=60-95 “D:\KWIK\Rain_Potion\build\images\*.png”
    @echo off
    cd “C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\Panels\Kwik\PC”
    start pngquant –ext .png -f –quality=60-95 “D:\KWIK\Rain_Potion\build\sprites\*.png”
    @echo off
    cd “C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\Panels\Kwik\PC”
    start pngquant –ext .png -f –quality=60-95 “D:\KWIK\Rain_Potion\build\thumbnails\*.png”
    @echo off
    cd “C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\Panels\Kwik\PC”
    start pngquant –ext .png -f –quality=60-95 “D:\KWIK\Rain_Potion\build\Default*.png”

    Tis file is in C:/Users/LFA1/Documents. I have noticed that I have …build\Default*.png” and not \images*.png”

    When I press the Compress PNG button in Kwik it highlights and 4 black pop up menus appear. Two menus disappear almost immediately. One seems be running and also disappear after a few seconds. The remaining last one seems to be running and takes a while until it also disappears. The Compress PNG button does not get highlighted and there is no message saying that the images will be compressed.

    I have changed the compress.bat file to …\images*.png” and pressed the Compress button. The result is the same and as soon as I do it the file becomes again \Default*.png”

    Those black pop up menus have on the top

    I have noticed that when I press the Compress button the address
    “D:\KWIK\Rain_Potion\build\Default*.png”
    the name of the project I am running (in this case Rain_Potion) changes in accordance with the project I am running.

    C/Programs(x86)/Adobe/Adobe Photoshop CS6/Plug-Ins/Panels/Kwik/PC/pngquant.exe

    What do you mean with “To execute manually, open terminal console and drag the file to the console. Hit enter to run.”

    Since I am in a PC what/where is the terminal?

    Resolving it would save me quite a lot of work and trouble. Many thanks in advance.

    Yamamoto
    Keymaster
    #84122

    Press “Win-R,” type “cmd” and press “Enter” to open a Command Prompt session

    Or

    Start > Program Files > Accessories > Command Prompt” to open a Command Prompt.

    now you can drag&drop compress.bat file to it with your mouse. Enter key to run it

    Or just type or copy&paste the following command

    
    cd “C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\Panels\Kwik\PC”
    start pngquant –ext .png -f –quality=60-95 “D:\KWIK\Rain_Potion\build\images\*.png”
    
    Jorge
    Participant
    #84123

    Thanks.
    I have used WIN-R and cmd. It seems to run exactly has before. No message saying that images will be compressed. (I have not actually pulished the project again, but will do soon in another one).
    Does the fact that in my compress.bat I have …\Defaul*.png” and not \images*.png” makes any difference? Is it the same thing?

    Jorge
    Participant
    #84124

    EDIT
    I have run the project again following the above (cmd/drag compress.bat)
    The same result. I have realized that in the compress.bat file there is also an …\image*.png” line.
    What else can I do/check?

    Fionnuala
    Participant
    #84125

    Hi Jorge, Nayoa,

    Thanks for your help with this. I checked the image folder and I did have some duplication from moving pages around. I have now deleted all the files in the image folder and re-published the project and so there is no problems with duplication anymore. However, after compression, the file size is still big, just under 300 MB. This is an update to an app I already have on the App Store – Scribbaloo Train – and the current size is 47.7 MB. I have not made any changes to the app ( except for a new thumbnail and to get rid of black bars (letter boxing) that was appearing either side of the app on iPhone 6 – not sure how this happened as previous version were ok) Anyway, apart from these small changes the app is exactly the same in content.

    I am pressing the Compress Png Files button in Kwik, as the final action before building the app in Corona. I get this message:

    Last login: Thu Aug 20 12:13:59
    Fionnualas-MacBook-Pro:~ fionnualahanahoe$ /Users/fionnualahanahoe/Documents/Kwik/compress.command ; exit;
    error: rwpng_read_image() error 2
    logout

    [Process completed]

    Hope this helps.

    Thanks

    Fionnuala

    Jorge
    Participant
    #84126

    Hi Fionnuala,

    You are welcome. As you can see above I am struggling with the Compress png button. I hope I can solve it now with the help of Nayoa.

    In the meantime I have been using the same tool behind that button PNGoo.
    You can download it for free

    https://pngquant.org/

    I usually drag all the images and drop into the tool. Then remove the .jpg ones and run the tool. Do not forget to compress the launch images and icons.

    Fionnuala
    Participant
    #84131

    Hi Nayoa, Jorge

    I have typed the command line chmod a+x compress.command into the terminal and am getting the message:

    chmod: compress.command: No such file or directory

    Am I doing something wrong?

    thanks Jorge for https://pngquant.org/ – I will check that out.

    Thanks a mil

    Fionnuala

    Yamamoto
    Keymaster
    #84149

    there is a bug in Kwik and it fails to compress thumbnail images. compress.command should have the line like this. I will update Kwik.

    /Applications/Adobe\ Photoshop\ CS6/Plug-ins/Panels/Kwik/Mac/pngquant –ext .png -f –quality=60-95 ~/Documents/Kwik/YOUR_PROJECT_NAME/build/thumbnails/*.png

    Jorge
    Participant
    #84152

    Thanks Nayoa for being so diligent.
    I am still not able to run compress .png with Kwik. I do not know what more I could do. When I press the button I see several black windows. They all disappear after a few seconds and when Publish no image is compressed. Is there anything which I could do? Any file I could send you for you to have a quick look?

    Peakman
    Participant
    #84155

    This may side track a little bit, but can I ask why the thumbnail files needed to be .png? As no transparency is needed in the thumbnails…

    Why couldn’t it just be .jpg which will probably be smaller in file size?

    Yamamoto
    Keymaster
    #84328

    I look into thumbnail images to be jpg

    By the way, I am now having another issue about compressing PNGs on Windows7(64bit)

    the following current kwik setting for pngquant fails with some big pngs.
    pngquant --ext .png -f --quality=60-95 *.png

    it is an pngquant issue. quantization fail in some png with max quality < = 80 https://github.com/pornel/pngquant/issues/132

    It is solved with the following simple option without –quality=60-95
    pngquant.exe --ext .png -v -f *.png

    Kwik still uses the old version of pnguant. I will update kwik with the latest version of pngquant in January.
    https://pngquant.org/

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd

Functionality

WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-

Performance

google analytic

__utma,__utmb,__utmc,__utmz,_ga,_gid,_gat

Advertising