Evolution of "Ugoira" and flexibility of "animation.json" file.

45 views
Skip to first unread message

Ugoira

unread,
May 9, 2020, 9:21:53 AM5/9/20
to Honeyview Forum
As of now, the update of "Honeyview" function is stopped. It is very disappointing.
This is because there is no software other than "Honeyview" that can play "Ugoira" format.

When you get used to the "Ugoira" format, "Gif" and "Apng" feel obsolete.

The "Ugoira" format is currently in line with "pixiv" specifications, but it has its drawbacks.

I edited the "animation.json" file etc. and did various tests.
You can freely download what I used for the test from the link below.

I used the following simple images for testing.

circle.png

circle.png

square.png
square.png
triangle.png

triangle.png


  1. The first is that file names cannot be duplicated.
    For example, the following simple "animation.json" file works fine.
    [{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000}]
    ugoira_test_simple.ugoira(14,824 byte)
    [File contents]
    animation.json, circle.png, square.png, triangle.png

    However, if the same file name appears more than once, reading will stop and loop in the previous frame.
    [{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":2000},{"file":"square.png","delay":2000},{"file":"triangle.png","delay":2000}]
    ugoira_test_will stop at frame 3.ugoira(14,835 byte)
    [File contents]
    animation.json, circle.png, square.png, triangle.png
    In this case, it loops between "{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000}".

    To avoid this, it is necessary to avoid duplicate file names and save the same file with a different name and recompress.
    [{"file":"1_circle.png","delay":1000},{"file":"2_square.png","delay":1000},{"file":"3_triangle.png","delay":1000},{"file":"4_circle.png","delay":2000},{"file":"5_square.png","delay":2000},{"file":"6_triangle.png","delay":2000}]
    ugoira_test_no duplication.ugoira(29,605 byte)
    [File contents]
    1_circle.png, 2_square.png, 3_triangle.png, 4_circle.png, 5_square.png, 6_triangle.png, animation.json
    It works fine.
    But pay attention to the file size.
    You need to duplicate the same file, which is too inefficient.
    The file size is enlarged when playing a higher quality and finer image in the "Ugoira" format.
    It is especially affected when you want to repeat the same movement over and over and then move to a different movement.
    [For example]
    Many duplicates.json(964 byte)
    [{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000},{"file":"circle.png","delay":2000},{"file":"square.png","delay":2000},{"file":"triangle.png","delay":2000},{"file":"circle.png","delay":3000},{"file":"square.png","delay":3000},{"file":"triangle.png","delay":3000}]

  2. The second is that the name of the json file is not allowed except "animation.json".
    When multiple "Uraira" files exist in the same folder, names are duplicated when extracting and editing JSON files, which JSON files correspond to which "Uraira" files It will be indistinguishable.
    Detecting JSON files should not be difficult if Honeyview can use patterns such as "*.json".
    If you can freely change the name of the JSON file, management will be easier and more comfortable.

  3. The file name included in the "Ugoira" file must be alphanumeric.
    [{"file":"●.png","delay":1000},{"file":"■.png","delay":1000},{"file":"▲.png","delay":1000}]
    ●■▲.ugoira(14,786 byte)
    I don't think it is difficult to programmatically read double-byte characters, so this is one of the things I want Honeyview to realize.
    By the way, there is no problem if the name of the "Ugoira" file is double-byte characters.

  4. The compression method is not allowed except "Store".
    This is also awkward.
    "Store" means "no compression".
    Most image files in compressed method other than "Store" will not change much in size, but in some cases they may be smaller.
    If you use compression software to compress, a compression method other than "Store" may be selected automatically in some cases.
    It would be very helpful if Honeyview could get more support for compression method.

I appreciate the work of the Honeyview team so far.
I don't know why the feature update is stopped, but if it's fulfilled, it will bring a lot of happiness, and "Gif" and "Apng" may become a thing of the past.
Thank you.

KH Park

unread,
May 11, 2020, 4:11:24 AM5/11/20
to Honeyview Forum

Thank you for your port. :) 

I appreciate it. I really love it.


* As we announced here, I don't have any plan to add features to Honeyview for a while, but I will fix bugs if I could.

So, 


 ●■▲.ugoira
ugoira_test_will stop at frame 3.ugoira

Okay, I have fixed the bugs. I have changed the json parser and checked some codes.

You can download the bug-fixed-temporary setup file here. 




The second is that the name of the json file is not allowed except "animation.json".

I need the sample file. When I use Pixiv Toolkit, I don't need to support any json file name except animation.json.

If you have a sample file that has differ file name, please give it to me. 


The compression method is not allowed except "Store".

Honeyview support Deflate as well as store. If you have a sample file that Honeyview cannot open, please send it to me too. :) 




Best Regards.



--
You received this message because you are subscribed to the Google Groups "Honeyview Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to honeyview-wi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/honeyview-win/e05022da-cb21-44ff-ad4f-faf81b22ed48%40googlegroups.com.

gamepla...@gmail.com

unread,
May 16, 2020, 3:03:27 PM5/16/20
to Honeyview Forum
Many thanks KH Park.

I tested it with the following files.

●■▲.ugoira
I have confirmed that there is no problem even if double-byte characters are used in the name of the included image file.

ugoira_test_will stop at frame 3.ugoira
I have confirmed that there is no problem if the names of the included image files are duplicated.

[Regarding the following problems]
I uploaded the test files to the same link.

name of the json file is not allowed except "animation.json"
I don't usually use "Pixiv Toolkit".
I'm troubled by that all JSON files are same name in all "Ugoira" files.
ugoira_test_except animation.ugoira (9,566 byte)
[File contents]
test.json, circle.png, square.png, triangle.png
content of test.json
[{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000},{"file":"triangle.png","delay":1000}]

Playing this file in Honeyview behaves strangely.
Loop between:{"file":"circle.png","delay":1000},{"file":"square.png","delay":1000}
And Delay is not reflected at all.
This is a guess, but isn't the "Ugoira" file that can't read the JSON file have the specifications of playing the first two files at "delay100"?
If there is no special inconvenience, I would appreciate it if you can flexibly deal with the JSON file name.

The compression method
I think some files couldn't be opened with Deflate, but I probably deleted them.
i will contact you if i encounter any problems in the future.


Finally...
I usually use the portable version.
This is my selfishness, but I would be very happy if you could upload the portable version as well.

Thank you for your devoted work.

KH Park

unread,
May 18, 2020, 6:15:59 AM5/18/20
to Honeyview Forum

Okay. I have fixed the problem (ugoira_test_except animation.ugoira).  :)





--
You received this message because you are subscribed to the Google Groups "Honeyview Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to honeyview-wi...@googlegroups.com.

gamepla...@gmail.com

unread,
May 18, 2020, 9:52:35 AM5/18/20
to Honeyview Forum
Thanks! KH Park.

ugoira_test_except animation.ugoira
I confirmed that there is no problem if the name of the JSON file is other than "animation".

Thank you very kindly.
I will continue to use "Honeyview" in the future.
Reply all
Reply to author
Forward
0 new messages