zText

AfterShot Pro Plugins
tintin
Posts: 169
Joined: Thu Jan 12, 2012 2:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Ryzen R5 3600X

zText

Post by tintin »

find the latest verion of zText here

hi,

today i can provide an update for zText. the new version gives access to all exif data, now - e.g. ISO, Fnumber or exposure time can now be written on the image. additionally the version name (filename) is available, now.

the description how to access the data and the complete change-log is as follows:
  • full exif access introduced
  • as usual in zText the data-sysnonym is to be place in two '%'. the different available exif-tags are shown below. the prefix 'TIFFTAG' (EL, EL_TIFFTAG as well) may be skipped or not. the sysnonyms are also case-insensitive, now.
    example: %TIFFTAG_MAKE% = %MAKE% = %make%
  • if the name starts with a '/' after the first % the result is given back incerted as long as the result is a number. for most of the exifs does this not make sense, but it was introduce for especially one certain value - the exposure time. in the exif data the exposure time is stored as a rational number, e.g. 0.05 whereas 1/20 is commonly used in photographic scene. with using the '/' the returned value will be inverted internally.
    example:
    %EXPOSEURETIME% --> 0.05
    %/EXPOSEURETIME% --> 20
  • so it can be used as 1/20s with writing '1/%/EXPOSEURETIME%s' in zText.
    although it is not senseful for 'iso' or other numerical numbers it is possible with all exif data that give numerical values back
  • NOTE: the most of these tags may be empty - this will be displayed in the image with '%emtpyTag%'
  • available exif data:

    Code: Select all

                 Name                                  Description
               =============================================================
                TIFFTAG_MAKE                          Make
                TIFFTAG_MODEL                         Model
                EL_FILETYPE                           File Type
                TIFFTAG_IMAGEWIDTH                    Width
                TIFFTAG_IMAGELENGTH                   Height
                TIFFTAG_DATETIME                      Date Time
                TIFFTAG_ORIGINALDATETIME              Original Date Time
                TIFFTAG_DIGITZEDDATETIME              Digitized Date Time
                TIFFTAG_COPYRIGHT                     Copyright
                TIFFTAG_IMAGEDESCRIPTION              Description
                TIFFTAG_SOFTWARE                      Software
                TIFFTAG_FLASH                         Flash
                TIFFTAG_RESOLUTIONUNIT                Resolution Unit
                TIFFTAG_ORIENTATION                   Orientation
                TIFFTAG_XRESOLUTION                   X-Resolution
                TIFFTAG_XRESOLUTIONRAT                X-Resolution
                TIFFTAG_YRESOLUTION                   Y-Resolution
                TIFFTAG_YRESOLUTIONRAT                Y-Resolution
                TIFFTAG_EXPOSEURETIME                 Shutter Speed
                TIFFTAG_EXPOSEURETIMERAT              Shutter Speed
                TIFFTAG_SHUTTER                       Shutter Speed Value
                TIFFTAG_SHUTTERRAT                    Shutter Speed Value
                TIFFTAG_FNUMBER                       Aperture
                TIFFTAG_FNUMBERRAT                    Aperture
                TIFFTAG_APERTURE                      Aperture Value
                TIFFTAG_APERTURERAT                   Aperture Value
                TIFFTAG_MAXAPERTURE                   Max Aperture
                TIFFTAG_MAXAPERTURERAT                Max Aperture Value
                TIFFTAG_EXPOSUREBIAS                  Exposure Bias
                TIFFTAG_EXPOSUREBIASRAT               Exposure Bias
                TIFFTAG_FOCALLENGTH                   Focal Length
                TIFFTAG_FOCALLENGTHRAT                Focal Length
                TIFFTAG_EXPOSUREINDEX                 Exposure Index
                TIFFTAG_LIGHT                         Light Source
                TIFFTAG_BRIGHTNESS                    Brightness Value
                TIFFTAG_BRIGHTNESSRAT                 Brightness Value
                TIFFTAG_SENSEMETHOD                   Sense Method
                TIFFTAG_SCENETYPE                     Scene Type
                TIFFTAG_SCENECAPTURETYPE              Scene Capture Type
                TIFFTAG_EXPMODE                       Exposure Mode
                TIFFTAG_WBMODE                        White Balance
                TIFFTAG_FL35                          35 mm Focal Length
                TIFFTAG_CAPT                          Scene Type
                TIFFTAG_CONT                          Contrast
                TIFFTAG_SAT                           Saturation
                TIFFTAG_DIST                          Subject Distance
                TIFFTAG_AFMODE                        TIFFTAG_AFMODE
                TIFFTAG_EXPOSUREPROGRAM               Exposure Mode
                TIFFTAG_FLASHMODE                     TIFFTAG_FLASHMODE
                TIFFTAG_MACRO                         TIFFTAG_MACRO
                TIFFTAG_METERINGMODE                  Metering Mode
                TIFFTAG_NSHARP                        TIFFTAG_NSHARP
                TIFFTAG_OCONTRAST                     TIFFTAG_OCONTRAST
                TIFFTAG_SATURATION                    TIFFTAG_SATURATION
                TIFFTAG_AFMODE                        TIFFTAG_AFMODE
                TIFFTAG_COLORMODE                     TIFFTAG_COLORMODE
                TIFFTAG_FLASHMODE                     TIFFTAG_FLASHMODE
                TIFFTAG_FLASHTYPE                     TIFFTAG_FLASHTYPE
                TIFFTAG_FOCALMAX                      TIFFTAG_FOCALMAX
                TIFFTAG_FOCALMIN                      TIFFTAG_FOCALMIN
                TIFFTAG_ISO                           ISO Rating
                TIFFTAG_LENS                          TIFFTAG_LENS
                EL_TIFFTAG_LENSID                     EL_TIFFTAG_LENSID
                TIFFTAG_NWBMODE                       TIFFTAG_NWBMODE
                TIFFTAG_TONE                          TIFFTAG_TONE
                TIFFTAG_SHARP                         Sharpening
                TIFFTAG_FOCALUNIT                     Focal Length Unit
                TIFFTAG_FOCALX                        Focal X Res
                TIFFTAG_FOCALXRAT                     Focal X Res Rational
                TIFFTAG_FOCALY                        Focal Y Res
                TIFFTAG_FOCALYRAT                     Focal Y Res Rational
                TIFFTAG_JPEGIFOFFSET                  TIFFTAG_JPEGIFOFFSET
                TIFFTAG_JPEGIFBYTECOUNT               TIFFTAG_JPEGIFBYTECOUNT
                TIFFTAG_BITSPERSAMPLE                 Bit Depth
                TIFFTAG_COMPRESSION                   Compression
                TIFFTAG_SUBSECTIME                    Sub Second Time
                TIFFTAG_SUBSECTIMEORIGINAL            Sub Second Time Original
                TIFFTAG_SUBSECTIMEDIGITIZED           Sub Second Time Digitized
                TIFFTAG_EWIDTH                        TIFFTAG_EWIDTH
                TIFFTAG_EHEIGHT                       TIFFTAG_EHEIGHT
    
the new version may be found under this link

enjoy texting ;)
tintin
Last edited by tintin on Tue Feb 05, 2013 9:45 pm, edited 4 times in total.
my plugins on the official plugins homepage
If you find my plugins helpful, please make a donation to support further developments - just click here, thank you!
ogrizzo
Posts: 60
Joined: Fri Jan 13, 2012 7:45 pm
operating_system: Mac
System_Drive: Q
32bit or 64bit: 64 Bit
processor: 2.8 Ghz Intel Core i7
ram: 8 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Integrated Apple iMac 27"

Re: zText

Post by ogrizzo »

Is there a way to get just the year the picture was shot?

As in '© %YEAR% John Doe' ?
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München

Re: zText

Post by afx »

Why not use %rights%?
If you set up the copyright string properly in cam that should do it...

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
Joeby
Posts: 2
Joined: Mon Jan 30, 2012 9:53 pm
operating_system: Windows 7 Professional
System_Drive: C

Re: zText

Post by Joeby »

Is there a way to make the text wrap to another line?
Joeby
"Procrastination is acceptable if you could age never and live forever"
ogrizzo
Posts: 60
Joined: Fri Jan 13, 2012 7:45 pm
operating_system: Mac
System_Drive: Q
32bit or 64bit: 64 Bit
processor: 2.8 Ghz Intel Core i7
ram: 8 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Integrated Apple iMac 27"

Re: zText

Post by ogrizzo »

afx wrote:Why not use %rights%?
If you set up the copyright string properly in cam that should do it...
Camera is set to write both my wife's and my name, and that'd be too long…
tintin
Posts: 169
Joined: Thu Jan 12, 2012 2:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Ryzen R5 3600X

Re: zText

Post by tintin »

Joeby wrote:Is there a way to make the text wrap to another line?
use \n for wrapping to a new line.
e.g. 'hello\nworld'
will be
'hello
world'
my plugins on the official plugins homepage
If you find my plugins helpful, please make a donation to support further developments - just click here, thank you!
tintin
Posts: 169
Joined: Thu Jan 12, 2012 2:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Ryzen R5 3600X

Re: zText

Post by tintin »

ogrizzo wrote:Is there a way to get just the year the picture was shot?
As in '© %YEAR% John Doe' ?
just %year% is not possible - i'll think if it is possible to implement

br,
tintin
my plugins on the official plugins homepage
If you find my plugins helpful, please make a donation to support further developments - just click here, thank you!
ogrizzo
Posts: 60
Joined: Fri Jan 13, 2012 7:45 pm
operating_system: Mac
System_Drive: Q
32bit or 64bit: 64 Bit
processor: 2.8 Ghz Intel Core i7
ram: 8 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Integrated Apple iMac 27"

Re: zText

Post by ogrizzo »

tintin wrote:
ogrizzo wrote:Is there a way to get just the year the picture was shot?
As in '© %YEAR% John Doe' ?
just %year% is not possible - i'll think if it is possible to implement

br,
tintin
Actually, some way to pass arguments (including locale) to strftime, or whatever function the library uses, would be great.
derouyag
Posts: 9
Joined: Fri Feb 03, 2012 6:58 pm
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core2 Quad CPU Q6700 2.66GHz
ram: 8GB
Video Card: NVidia GeForce 8800 GT
Hard_Drive_Capacity: 11TB
Monitor/Display Make & Model: HP w2408h (Dual)

Re: zText

Post by derouyag »

Maybe "/n" could be added to the Presets as "Next Line" or "New Line" or "Line Feed".

If there are more hash tags like this, maybe they can also be added to the Presets with meaningful text.
maggus
Posts: 69
Joined: Fri Jan 13, 2012 2:51 am
operating_system: Linux
System_Drive: B
32bit or 64bit: 32 Bit

zText 2.1.0 Info-Popup freezes ASP

Post by maggus »

Hi tin.tin,

in general zText seems to work, but I notice some strange behaviour (at least on my OpenSuse 11.4, 32bit).

(1) The list of available fonts seems to alter within an ASP session. I started editing a foto, enabled zText and selected a font (Luxi Sans) ... started exporting this foto. Then I selected another foto and also enabled zText, wanted to select the same font, but "Luxi Sans" was not in the list (drop-down-box) anymore ?!?!? So I selected another font "XXX". Opening this foto in a new session in ASP then again had the "Luxi Sans" font available, but "XXX" was gone and replaced by "Courier".
Not sure if I can reproduce, but at least it looks strange.

(2) This is more important. Have you ever clicked the help/info button ("?") within zText ?
When I do so I get the popup-window with your infos and donate .... then I cklick close/Ok ... and then ASP is frozen (not taking any CPU, just idle) !
Prozess table (within SystemMonitor) still shows "zFrame 2.1.0" as window title ... but I do not have zFrame installed !
O.K., the text is not the real issue, but ASP needs to be killed afterwards.
In the attached ZIP you´ll find the AspLog as well as my SystemInfo.

cheers
Markus
You do not have the required permissions to view the files attached to this post.
OpenSuse 11.4 (32bit)
Dell U2410
tintin
Posts: 169
Joined: Thu Jan 12, 2012 2:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Ryzen R5 3600X

Re: zText

Post by tintin »

hi maggus,

(1)...
i did not noticed that, yet - and i can't influence this. the combo box for choosing a certain font is a library element from Qt. i just use it :?

(2)...
on my winXP it behaves like intended. but i'll have a look to my code. normally this is implemented exactly like all the other plugins, too.
do you have the same issue with one of the others of zFrame, zShadow, ZPerspector, zChannelmixer? if yes which/which not?

thanks a lot!
tintin
my plugins on the official plugins homepage
If you find my plugins helpful, please make a donation to support further developments - just click here, thank you!
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München

Re: zText

Post by afx »

I have seen some weird effects with zText where the tool was mostly empty and the UI elements only started to show up once I moved the mouse over them (on Linux).
So there might be some UI initialization thing that is a bit off.

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
maggus
Posts: 69
Joined: Fri Jan 13, 2012 2:51 am
operating_system: Linux
System_Drive: B
32bit or 64bit: 32 Bit

Re: zText

Post by maggus »

tintin wrote:...
(1)...
i did not noticed that, yet - and i can't influence this. the combo box for choosing a certain font is a library element from Qt. i just use it :?

(2)...
on my winXP it behaves like intended. but i'll have a look to my code. normally this is implemented exactly like all the other plugins, too.
do you have the same issue with one of the others of zFrame, zShadow, ZPerspector, zChannelmixer? if yes which/which not?...
Hi tin.tin,

(1) hmmm :?: maybe some Qt guru has some ideas ?
(2) YES, tried with zPerspector & zChannelMixer ... same issue of frozen ASP after info <?> popup.
afx wrote:I have seen some weird effects with zText where the tool was mostly empty and the UI elements only started to show up once I moved the mouse over them (on Linux).
So there might be some UI initialization thing that is a bit off.
Hi afx and tin.tin,
me to, I observed this strange "draw UI when mouse hovers" also once ... so far only for zText.
afx, you´re also a Linux-user ... can you also reproduce issue (2) ?

cheers
Markus
OpenSuse 11.4 (32bit)
Dell U2410
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München

Re: zText

Post by afx »

Nope, can not reproduce the freeze.

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
tintin
Posts: 169
Joined: Thu Jan 12, 2012 2:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Ryzen R5 3600X

Re: zText

Post by tintin »

maggus wrote:(2) YES, tried with zPerspector & zChannelMixer ... same issue of frozen ASP after info <?> popup.
do you have an example that not freezes? zFrame? zShadow?
my plugins on the official plugins homepage
If you find my plugins helpful, please make a donation to support further developments - just click here, thank you!