+
    /i[                        R t ^ RIHt ^ RIt^ RIt^ RIt ^RIHt RR R llt
]R8X  d   ]P                  ! ]
! 4       4       R# R#   ] d     ^ RI	Ht  L:  ] d    ^ RIHt   LJi ; ii ; i)=Print or replace ImageDescription in first page of TIFF file.)annotationsN)tiffcommentc                    V ^8  d   QhRRRR/# )   argvzlist[str] | Nonereturnint )formats   "R/var/www/html/photoedit/myenv/lib/python3.14/site-packages/tifffile/tiffcomment.py__annotate__r      s     X X X3 X    c                   \         P                  ! RRR\         P                  R7      pVP                  RRRRR	7       VP	                  4       pVP                  R
RRRR7       VP                  RR\         P
                  ! R4      RRR7       VP                  RR\        RRR7       VP                  RRRRR7       TP                  V f   RMV R,          4      pVP                  e9   VP                  ;_uu_ 4        VP                  P                  4       pRRR4       M-VP                  e    VP                  P                  R4      pMRpVP                  pVe7   \        P                   ! \"        4      ;_uu_ 4        \        V4      pRRR4       ^ pVP$                   F  p \'        VXVP(                  VR7      pV'       d   \+        V\,        4      '       d   VP/                  R R!7      p\1        VP$                  4      ^8  d   \3        R"V 24       \3        V4       \1        VP$                  4      ^8  d   \3        4        K  K  K  	  V#   + '       g   i     EL; i  \         d    TP                  R4        EL5i ; i  + '       g   i     EL; i  \4         d/   p	\3        T R#T	 2\6        P8                  R$7       ^p Rp	?	EK-  Rp	?	ii ; i)%z-Tiffcomment command line usage main function.r   r   zExample: tiffcomment --set "my description" image.tif
When multiple files are given with --set or --set-file, the same comment is written to all of them.)progdescriptionepilogformatter_classfiles+filezTIFF file(s) to read or modify)nargsmetavarhelpz--setcommentzreplacement comment string)destr   r   z
--set-filecomment_filerbz2path to a file whose raw bytes replace the comment)r   typer   r   z--page	pageindexNz,index of page to read or modify (default: 0)z--tagtagcodecodez>tag code or name to read or modify (default: ImageDescription)N:   NNasciizMcomment contains non-ASCII characters; use --set-file with a pre-encoded file)r   r!   replace)errorsz# z: )r   )argparseArgumentParserRawDescriptionHelpFormatteradd_argumentadd_mutually_exclusive_groupFileTyper	   
parse_argsr   readr   encodeUnicodeEncodeErrorerrorr!   
contextlibsuppress
ValueErrorr   r   r   
isinstancebytesdecodelenprint	Exceptionsysstderr)
r   parsercomment_groupargsr   r!   retr   resultexcs
   &         r   mainrC      s   $$K; !<<F -	   779M)	   t$A   ;   M	   T\TtBx@D $'',,.G 		!	ll))'2G  $G  ,,'lG - C

	 gF fe,,#]])]<Ftzz?Q&Btf+&ftzz?Q&G '  " JK 
 " 	LL:	 -,,  	TF"SE"4C	sB   <I/I# ?J%JI 	#JJJ	K%"KK__main__)N)__doc__
__future__r   r'   r2   r;   tifffiler   ImportErrortifffile.tifffilerC   __name__exitr
   r   r   <module>rL      sr    D "   
)%Xv zHHTV E  ))1 )(())s)   A A+AA'#A+&A''A+