Giter Site home page Giter Site logo

Comments (15)

StarGeekSpaceNerd avatar StarGeekSpaceNerd commented on June 3, 2024 1

I believe that they want it documented, even though it only affects a few tags.

@MasterInQuestion, this only affects some tags which are usually not usable by people, only the programs that write them. The Pantry video tags or the DocumentHistory tags, for example. These tags can hold an extreme amount of data.

This won't affect the more commonly used tags, such as Description. For example, I wrote to the Description a 7,000 character string and exiftool doesn't truncate it.

The use case for this option was very specific. As per the forum post you linked, it was for EXIF tag ID 0x9999, which exiftool doesn't even display by default.

from exiftool.

StarGeekSpaceNerd avatar StarGeekSpaceNerd commented on June 3, 2024 1

"..." longer than 4..?

[...] is 5 characters. So yes, 4 or less.

Though technically, it can be 3 by using the actual ellipsis character
[…]
though that might someone's script that checks for the 5 character version.

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

I don't understand your concern. There should be no backward compatibility issues.

  • Phil

from exiftool.

MasterInQuestion avatar MasterInQuestion commented on June 3, 2024

    The documentation about which is unclear and somewhat misleading.
    (the limit was originally hard-coded and exists only for some tags?)

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

Correct.

from exiftool.

MasterInQuestion avatar MasterInQuestion commented on June 3, 2024

    Probably linking to this post in the documentation would be the easiest fix...

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

I don't understand this issue.

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

They want "it" documented? What is "it"? Sorry for being dense here.

The fact that it was originally hardcoded? (I don't see this as being relevant for future versions going forward, unless you meant to document it in the release notes.) Which tags are affected? (I don't see this as being useful, plus a long list like this would clutter the documentation and be a headache to maintain in the future, although maybe it would assuage some fears if I mentioned that they are mostly Unknown tags.)

  • Phil

from exiftool.

StarGeekSpaceNerd avatar StarGeekSpaceNerd commented on June 3, 2024

Probably something along those lines, and I agree with you on the usefulness. It also seems to me that there is a Google translation problem here.

from exiftool.

MasterInQuestion avatar MasterInQuestion commented on June 3, 2024

    Thanks for the explaining.

    “API Changes: Added "LimitLongValues" option”
[[
[ "LimitLongValues"
    When extracting some values that may be very long, the PrintConv values are length-limited and the value is truncated with an elipsis ("[...]") if it exceeds a specified length.
    This option specifies the length limit for these tags.
    A setting of 4 or less disables the limit (because the elipsis string is longer than this). ]
]]
    Misleading as it does not affect tags generally.
    This may give people a hunch that the change may break things: if they haven't investigated thoroughly.

    Also, "elipsis" is not preferred form in English: "ellipsis".


    Suggested change:
[[
[ "LimitLongValues"
    For certain very specific tags, their value are atypical thus default length-limited and truncated with "[...]" during extraction.
    This option specifies the length limit for these tags.
    Setting 4 or less disables the limit. (for "[...]" is longer than which)

    For more details: https://github.com/exiftool/exiftool/issues/240 ]
]]

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

Thanks for explaining. I'm happy with this:

When extracting values for some specific tags (usually Unknown tags), the
PrintConv values are length-limited and the value is truncated with an
ellipsis ("[...]") if it exceeds a specified length. This option specifies
the length limit for these tags. A setting of 4 or less disables the limit
(because the ellipsis string is longer than this). Default is 60.

@Stargeek: We have enough troubles with special characters in the output :P

  • Phil

from exiftool.

MasterInQuestion avatar MasterInQuestion commented on June 3, 2024

    For embedding in HTML, you may refer to this post:
    https://github.com/madler/zlib/issues/910

    One-liner is difficult to read: I typically parse which with some implementation like [ https://util.unicode.org/UnicodeJsps/breaks.jsp?D1=Sentence&a=${Text} ].
    Finding where each sentence starts is painful... (without syntax highlighting)


    See also:
    ASCII punctuation preference
    https://github.com/MasterInQuestion/talk/discussions/5

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

I'm going to pretend I didn't see that. :)

from exiftool.

MasterInQuestion avatar MasterInQuestion commented on June 3, 2024

    Of course, at will. :)
    But I noticed significant amount of problems are caused by such alike.

from exiftool.

boardhead avatar boardhead commented on June 3, 2024

I've attempted to make the documentation and release notes more clear about this.

from exiftool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.