Marcus Boerger
30a68c8d84
Fix exif_thumbnail
2003-08-09 20:43:06 +00:00
Zeev Suraski
538d58dd5f
Use new infrastructure.
...
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Marcus Boerger
c5d4b5ddcd
- Errors, warnings and notices start with a capital letter.
...
- Show sorcode info when debugging exif.
2003-06-20 18:24:38 +00:00
Edin Kadribasic
e92e7d47c5
Fixed win32 build
2003-06-15 22:58:04 +00:00
Andrey Hristov
eb33adf139
proto fixes
2003-06-15 15:29:46 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Marcus Boerger
6f524ac9f1
Use safe_estrdup() instead.
...
# Thanks Sascha i didn't knew about that thing.
2003-05-30 18:59:49 +00:00
Marcus Boerger
07ba5f6c9e
Fix handling of ini settings
2003-05-30 17:46:57 +00:00
Hartmut Holzgraefe
e6490c4a41
basename() now binary safe, testcases added
2003-05-05 13:46:14 +00:00
Marcus Boerger
8363658641
Change to use safe_emalloc() and provide macro for now
2003-04-16 06:10:41 +00:00
Ilia Alshanetsky
b2e521a178
Fixed bug #23102 (integer overflow in exif_iif_add_value()).
2003-04-08 00:18:57 +00:00
Rasmus Lerdorf
7461f1f45a
MFB
2003-04-03 22:45:25 +00:00
Rasmus Lerdorf
716142c4ea
MFB: Get rid of bogus dtors
2003-04-02 22:07:22 +00:00
Rasmus Lerdorf
423147c194
MFB
2003-04-01 18:50:31 +00:00
Marcus Boerger
9d02c2bd56
correct my fault here and documnet the sense of the test
2003-01-18 19:06:29 +00:00
Ilia Alshanetsky
a3daf3bbe8
Additional memory allocation fixes by Marcus Börger.
2003-01-18 18:51:12 +00:00
Ilia Alshanetsky
e0654de590
Removed the no longer needed memory allocation checks.
2003-01-18 18:32:19 +00:00
Marcus Boerger
6a75a52ad8
better to check for existance first
2003-01-04 19:19:59 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Sascha Schumann
20e8bc31f0
(char *) vptr += expr; is refused by the IRIX compiler, so we use
...
vptr = (char *) vptr + expr; instead.
2002-12-22 16:34:13 +00:00
Sascha Schumann
280f4a4373
'index' is a function name in the C library, do not use it as variable name.
...
also, cast the 'void *' correctly to a 'char *' for manipulation
instead of an 'int'.
2002-12-22 16:03:28 +00:00
Marcus Boerger
59656cc706
fix compiler definition tests
2002-12-16 17:52:43 +00:00
Marcus Boerger
50af908f01
fix compiler definition tests
2002-12-16 15:53:46 +00:00
Marcus Boerger
2d3b3fd97f
fix test
2002-12-16 15:19:57 +00:00
Marcus Boerger
9042a9ddbd
Add version check since this will be available since php 4.4.
2002-12-16 15:04:12 +00:00
Marcus Boerger
da1a617f6b
forgot to remove that dot
2002-12-16 14:54:35 +00:00
Marcus Boerger
5dc4d38204
-Add constant that shows whether or not exif uses mbstring.
...
-Fix tests
2002-12-16 14:48:00 +00:00
Marcus Boerger
6e055f9a77
change mbstring detection
2002-12-16 09:58:49 +00:00
Marcus Boerger
c1be81a84e
ws
2002-12-15 18:49:07 +00:00
Marcus Boerger
16694d3500
Fix build when mbstring is a shared module or dll under windows
2002-12-14 19:53:20 +00:00
Marcus Boerger
9455657a7a
Bugfix: #21010 (Here it's maker (manufacturer) instead of marker)
2002-12-14 17:49:19 +00:00
Ilia Alshanetsky
52d0f1c143
decode variable is only used when mbstring is avaliable.
2002-12-11 07:37:30 +00:00
Ilia Alshanetsky
91a6272972
Fixed win32 build.
2002-12-10 18:00:47 +00:00
Marcus Boerger
26c5c323ab
-make those debug messages
2002-12-10 14:35:13 +00:00
Ilia Alshanetsky
aa4c85dda1
Fixed bug #20907 , patch by m-arai@sco.bekkoame.ne.jp.
2002-12-10 00:10:27 +00:00
Marcus Boerger
28c10e29d0
-Code completley rewritten
2002-11-27 02:42:41 +00:00
Marcus Boerger
569c69ba36
-Add test for exif_read_data and magic_quotes_runtime
2002-11-27 02:31:26 +00:00
Marcus Boerger
57f41b1a90
-Forgot to correct length
2002-11-27 02:28:29 +00:00
Marcus Boerger
3ff08b91a6
-Add magic_quotes_runtime support
...
-Fix Canon Markernote
2002-11-27 01:46:36 +00:00
Marcus Boerger
318e561905
Testing default behaviour
2002-11-23 00:54:04 +00:00
Ilia Alshanetsky
962e4864a1
Fixed bug #20560 .
2002-11-22 21:51:38 +00:00
Marcus Boerger
25641a7e96
Minor test corrections
2002-11-14 21:45:01 +00:00
Marcus Boerger
37e64f38ac
Test is affected by mbstring
2002-11-14 21:43:49 +00:00
Ilia Alshanetsky
6e06948c19
Removed duplicate assignment.
2002-11-08 01:08:01 +00:00
Marcus Boerger
0a7653263d
README.TESTING examples
2002-10-25 11:10:08 +00:00
Marcus Boerger
ee4dfeec5d
New naming scheme
2002-10-25 10:59:52 +00:00
Marcus Boerger
339dfe0cd2
better use var_dump and EXPECTF
...
#seems i waited for EXPECTF
2002-10-23 23:51:15 +00:00
Marcus Boerger
cda87f7509
Allow ifd start at offset other than 00000007h and provide testcase.
...
#Now we can read images modified by Exifer.
2002-10-19 09:52:00 +00:00
Ilia Alshanetsky
b4348434be
Fixed the output_handler ini setting.
...
Code cleanup.
2002-10-15 12:48:21 +00:00
Derick Rethans
1a08e5b622
- Staying consistent with other tests
2002-10-15 06:37:05 +00:00
Marcus Boerger
d396d9c7ce
remove ob_end_clean() and instead use ini section
...
#Derick you're right this was no good idea. I just left it over after testing
#the test.
2002-10-15 00:35:05 +00:00
Marcus Boerger
9f8b57fb57
typing
2002-10-03 10:44:13 +00:00
Derick Rethans
cf07c698d1
- Align configure --help messages
2002-09-19 20:14:35 +00:00
Marcus Boerger
38247a7993
One zero to much
2002-08-29 08:32:41 +00:00
Derick Rethans
9d31d92712
- EXIF is about meta data from images, not for digital cameras
2002-08-29 05:36:42 +00:00
foobar
715615ea6b
revert that undiscussed change until it is really agreed upon.
2002-08-29 00:55:24 +00:00
Marcus Boerger
562b78f422
Enable EXIF by default as discussed with Rasmus
...
@Made EXIF (digital camera) extension enabled by default. (Marcus)
2002-08-28 19:31:01 +00:00
Marcus Boerger
412c2ba7a3
MFB
2002-08-25 18:48:46 +00:00
Marcus Boerger
d104d08a84
These require exif and mbstring
2002-08-21 23:14:40 +00:00
Marcus Boerger
3b24fc1c5a
Reflect recent changes to exif.c
2002-08-21 11:37:22 +00:00
Marcus Boerger
6474731f91
some work on the messages
2002-08-13 09:41:30 +00:00
Rasmus Lerdorf
0779da509b
Don't use long as a type
2002-08-13 04:11:51 +00:00
Marcus Boerger
4294f2a93d
use of php_error_docref
2002-08-12 20:18:25 +00:00
Marcus Boerger
abb280e9f7
left on debug infos
...
#overlooked that in diff
2002-08-07 16:35:48 +00:00
Marcus Boerger
36986742ae
Ignore additional thumbnails
...
#anybody interested in expansion to support multiple thumbnails?
2002-08-07 16:19:43 +00:00
Dan Kalowsky
e410749014
Keeping function prototype variables the same
2002-08-06 03:48:15 +00:00
Marcus Boerger
7477baf33a
datatype inconsistency found by Dan Kalowsky
2002-08-06 03:32:16 +00:00
Marcus Boerger
dfe1a65faf
-fix warnings in windows build
2002-07-31 21:34:37 +00:00
Marcus Boerger
0383426860
-decode several MarkerNotes
...
-correct offset information in debug mode
@exif_read_data() can decode MarkerNote of several Cameras. (Marcus)
2002-07-28 17:21:51 +00:00
Marcus Boerger
8b853592b1
Missing Photoshop tags
2002-07-26 17:09:02 +00:00
Marcus Boerger
4a8dd1255f
-handling of thumbnails in sub IFDs (the Photoshopway for TIFF)
...
-Some Photoshop specific tags
#after the last patches this finally fixes all warnings and errors in bug #18405
2002-07-25 00:52:30 +00:00
Marcus Boerger
837fa41da5
-naming convention
...
-better notices
-(D)WORD are unsigned datatypes
-started to split tygs into different arrays that would allow to handle vendor specific tags after detection of their markers
#BUT simply i do not have any vendor specific image tags...
2002-07-24 00:05:41 +00:00
Marcus Boerger
469266e4a2
added some more tags from WinXP
...
changed conersion for TAG_FMT_SBYTE & BYTE
#second change fixes unnecessary conversion timeout
#found by Johan Hultgren <johan@6thgear.se>
2002-07-22 15:07:12 +00:00
Marcus Boerger
b4c3a0f06e
added EXIF Version 2.2 Tags
2002-07-22 11:36:17 +00:00
Marcus Boerger
21da93abe1
unify error messages & notices
...
# this fixes exif again since it was broken by message unify
2002-07-21 22:38:23 +00:00
Marcus Boerger
b634ec9e30
-fix datatypes for some vriables
...
-fix comment for function exif_process_CME
-force return parameters to be passed by reference
#this should kill warnings on win systems as found by Edin
2002-07-02 22:38:37 +00:00
Derick Rethans
dc900d4f77
Unify error messages part 1
2002-06-29 17:40:28 +00:00
Marcus Boerger
46a373ba70
modified test3 (old one had a warning)
2002-06-24 22:22:42 +00:00
Marcus Boerger
cccc4e3c5a
register IMAGETYPE_<xxx> constants in image.c as they are needed
...
there.
2002-06-24 19:36:26 +00:00
Marcus Boerger
48bdf08edb
@GetImageSize now allways set fields unknown to 0 and new Imagetype
...
@iff. (Marcus)
2002-06-24 19:19:08 +00:00
Marcus Boerger
1f56d4ba08
-imagetype2mimetype renamed to image_type_to_mime_type
2002-06-23 00:43:11 +00:00
Marcus Boerger
16a753d3c2
-new test for WinXP tags
2002-06-23 00:39:34 +00:00
Marcus Boerger
b21a4d7fa9
-fix test results
2002-06-23 00:38:25 +00:00
Marcus Boerger
966e1d450e
-corrected test result
2002-06-23 00:26:34 +00:00
Marcus Boerger
d782c712ca
-exif version
...
-missing constant (and notice)
-corrected error messages
2002-06-22 23:43:16 +00:00
Marcus Boerger
4c53f954be
@exif_read_data returns mime-type now for image and thumbnail And exif_thumbnail now optionally returns imagetype. (Marcus)
...
#So now you can use imagetype2filetype with exif_thumbnail
2002-06-22 18:38:33 +00:00
foobar
3b9401a3ed
DO NOT use C++ comments!
2002-05-19 00:02:07 +00:00
Frank M. Kromann
45881d2b40
Fixing Win32 compilation of exit
2002-04-15 22:23:20 +00:00
Marcus Boerger
ef5c0f7cc6
support for WinXP tags (thanks to Rui Carmo)
2002-04-14 20:47:21 +00:00
foobar
8581de0fe2
Fix the build.
...
# Marcus, do you TEST build at all before you commit?!
2002-04-12 22:02:28 +00:00
Marcus Boerger
50d957cd7a
Ini settings for internal encoding and decoding of Unicode and JIS formatted user comments.
...
@- Ini settings for encoding/decoding Unicode/JIS user comments (Marcus)
2002-04-12 16:35:56 +00:00
Rasmus Lerdorf
eb43795ccb
This exif test was failing because the \0's in the expected output had
...
disappeared. It may be CVS doing this. I have put the nulls back, but we
may have to mark this as a binary file in th cvswrappers, or rewrite the
test to not output nulls.
2002-04-12 01:07:46 +00:00
Marcus Boerger
f140a8dd0d
fix exif using vspprintf
2002-04-10 01:18:52 +00:00
Marcus Boerger
59f332800f
correcting some more whitespace
...
#hope that's it
2002-04-07 23:30:01 +00:00
Marcus Boerger
bba604b3d8
-fix warnings
...
-fix layout
2002-04-07 18:45:30 +00:00
Marcus Boerger
313503aa92
-testing unicode user-comment
2002-04-05 18:05:48 +00:00
Marcus Boerger
8a388954ea
-correct length for ASCII
...
-global encoding variables
#will become ini settings explanation on what to set follows then
2002-04-05 17:59:29 +00:00
Marcus Boerger
b3a96ba509
aligning #
...
#mentioned by derick
2002-04-05 16:02:54 +00:00
Marcus Boerger
d0de28ece4
Unicode is now based on php_mb_convert_encoding if available
...
#currently only ISO-8859-15 is supported as result
#maybe this will become an ini setting
2002-04-05 01:25:53 +00:00
Marcus Boerger
bc6d302fcf
removed calls to wctomb, wcstombs
...
#leave UNICODE to user
2002-04-04 20:45:53 +00:00
Derick Rethans
755b8542e4
- Fix as suggested my Marcus
2002-04-03 19:50:02 +00:00
Markus Fischer
700b9eb734
- Nuke *FETCH macros.
2002-04-01 08:05:17 +00:00
Marcus Boerger
0fd732214a
#cleanup source
2002-04-01 03:15:57 +00:00
Markus Fischer
ab2194d1da
- Fix compilation.
...
# Marcus, could you please fix the whitespace in this file?
2002-03-31 23:00:31 +00:00
Marcus Boerger
e4f4386758
-compiler warnings
2002-03-30 14:28:05 +00:00
Marcus Boerger
efad4e4281
#and when the test does not result like you expect -> change test data
...
-fix test image
2002-03-29 01:33:30 +00:00
Marcus Boerger
d0be2aabe4
-fix possible problem on low memory
...
-fix problem on failure
2002-03-29 01:32:26 +00:00
Hartmut Holzgraefe
d2b8655775
pproto fix
2002-03-25 01:08:39 +00:00
Marcus Boerger
eb8c6b4696
-removed old streams test code
2002-03-21 20:16:22 +00:00
Marcus Boerger
ac6ae669e4
-fixed memory handling
2002-03-21 19:59:08 +00:00
Marcus Boerger
671829bff4
#ws
2002-03-21 13:16:03 +00:00
Wez Furlong
659a071e3d
Streams are all tracked as resources now.
...
Add some logic that will help track down leaks
when debug is enabled.
2002-03-20 14:21:30 +00:00
Wez Furlong
c9d5e13738
TSRMLS related work on streams, as discussed with Zeev.
...
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
2002-03-18 18:54:32 +00:00
Marcus Boerger
68f4e7c328
-streams are no longer an option
2002-03-18 05:32:25 +00:00
Marcus Boerger
c645babd8a
-use php_stream_make_seekable
2002-03-18 00:12:47 +00:00
Wez Furlong
d2d8762267
Streams now make more use of the memory manager, so tracking down
...
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Marcus Boerger
20f2e63289
#removed code to track down error in streams
2002-03-17 12:16:29 +00:00
Marcus Boerger
bcad7a593a
-quick hack to bug in streams....but where?
2002-03-16 21:19:17 +00:00
Marcus Boerger
d50102b6ab
-disabling debug
...
#Wez: i have an error when closing the original file after stream copy...
2002-03-16 20:25:51 +00:00
Marcus Boerger
fe9cb020ae
-fix bug for not correct terminated comments
...
-switch to streams
@exif functions now support streams using memory streams where @necessary (marcus)
2002-03-16 20:12:17 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
Marcus Boerger
e03a8a995c
-handling
2002-03-13 00:21:51 +00:00
Marcus Boerger
659833a066
-remove filetime from test
...
# that's magic - now the test should work on all installations
2002-03-13 00:20:48 +00:00
Sascha Schumann
5cba3a99c2
extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed
2002-03-12 16:44:00 +00:00
Marcus Boerger
3c47fb91e8
-usability
...
-tests
2002-03-12 16:43:29 +00:00
Marcus Boerger
8a622d0668
-return size of thumbnail even if it not read
2002-03-12 13:49:40 +00:00
Marcus Boerger
f96696e2a1
-reflect changes
...
-find image from run-tests.php
2002-03-12 12:42:45 +00:00
Marcus Boerger
06a242169c
-support for array tags
...
-better memory handling
-support for thumbnails in TIFF format
-new functions exif_imagetype
@-new function exif_imagetype
@-exif_thumbnail fupports thumbnails in TIFF format and can return size
@ of thumbnail
2002-03-12 06:14:45 +00:00
Marcus Boerger
42e478c7aa
-support for out of section data
2002-03-08 20:56:44 +00:00
Sander Roobol
58a52f93bc
Fixed many tests, mostly incorrect paths.
2002-03-08 19:16:19 +00:00
Marcus Boerger
27242a7a46
-change IsColor from non zero to 1
...
-new test and example for documentation
2002-03-08 11:33:46 +00:00
Marcus Boerger
355150ebde
-Changes according to exif.c 1.55
2002-03-08 01:11:03 +00:00
Marcus Boerger
9363bfad7e
-Support for IFD Arrays
...
#necessary for update/write operations
2002-03-08 01:09:54 +00:00
Marcus Boerger
d994d0b47d
TIFF support for 'non' digicam files
...
# same as in standard/image.c but here it's more complex
2002-03-08 01:06:59 +00:00
foobar
88750086cc
- Fixed some compile warnings and removed bogus comments.
2002-03-07 21:41:51 +00:00
Marcus Boerger
ac80c9d00e
- standard test scripts for exif
...
#hope all problems in exif are resolved now
2002-03-06 22:01:45 +00:00
Marcus Boerger
0a0942b193
-comments
...
#just another jhead.c line
2002-03-06 20:52:17 +00:00
Marcus Boerger
15d74e343b
-comments
2002-03-06 20:24:29 +00:00
Marcus Boerger
3dc95db8b7
-updated test to reflect third parameter of exif_read_data
2002-03-06 18:21:50 +00:00
Marcus Boerger
0b5759f7bf
-missing efree
...
-incorrect index/length computing: left from jhead
#no errors left with test files - controlled manually with hexeditor
2002-03-06 18:11:57 +00:00
Marcus Boerger
efddda3d6d
-updated test
2002-03-06 09:32:02 +00:00
Marcus Boerger
0ecd2f0876
-new working thumbnail code
...
-everything uses new data structures
-new function exif_thumbnail
#nearly stripped off all jhead code
@read_exif_data is now an alias for exif_read_data
@ important to differenciate old/new version for tests)
@new function exif_tagname returns the names of tags
@new function exif_thumbnail extracts embedded thumbnail (Marcus)
#switched to internal version 1.2
2002-03-06 09:31:32 +00:00
Marcus Boerger
088450efce
-fixes
...
-changed internal data structures
#nearly stripped off all jhead code
2002-03-05 19:47:19 +00:00
Marcus Boerger
ce4bf31268
- also test TIFF support in GetImageSize
2002-03-04 23:20:48 +00:00
Marcus Boerger
6b2a074330
- Read IsColor for TIFF
2002-03-04 23:19:27 +00:00
Marcus Boerger
a7403576e1
- disabled debug information
...
- added missing width/height from primary ifd for TIFF
2002-03-04 17:09:24 +00:00
Marcus Boerger
be5908b06c
-addition to last change: php_image.h must be included now
2002-03-04 09:29:06 +00:00
Rasmus Lerdorf
83e6dbcf19
Let getimagesize() and read_exif_data() share the same constants to
...
promote a little bit of code reuse here on two very similar problems.
2002-03-04 07:21:30 +00:00
Marcus Boerger
9c8ad6614f
-Updated test.txt and provided test.php
...
# simply including test.txt
@Added test.php/txt to have a possibility to check ext/exif
@(Marcus)
2002-03-04 06:26:07 +00:00
Marcus Boerger
642ab24df1
-Added TIFF support
...
-Changed parameters after checking bugdatabase and discussion with
Rasmus: 1st=Filename, 2nd=NeededSections
# 3rd=Thumbnail, 4th=All
# 3rd and 4th parameter are currently diabled because the code
# does not work correctly (will correct this in later versions).
# Changing the parameters will not cause any problems because the
# old parameter functions never found their way in documentation
# and the they did not work...
@-Added TIFF support
@-Changed parameters after checking bugdatabase and discussion with Rasmus
@ 1st=Filename, 2nd=NeededSections
@ If the 2nd parameter is not present or 0 or '' the function will return
@ a result array even if no data was read from file.
# Personally i consider a default behaviour to generate no array if
# no data is present as a bad idea because here we can generate as
# much information as possible....
@ If the 2nd parameter is a string then that string describes which
@ sections have to be present in the file to generate a result array.
@ If none of the needed section is found the result will be false.
@ Section strings are "ANY_TAG","IFD0","COMMENT","EXIF","GPS","INTEROP"
@ "FPIX","APP12". Each string has to be separated by a colon. So
@ "COMMENT,EXIF" returns an array if either a comment or an Exif
@ section is present. "IFD0" is standard datastructure in a TIFF/JPEG
@ file that contains image information. "EXIF" is the Exif structure
@ of TIFF/JPEG (IFD0 subdirectory). "GPS", "INTEROP", "FPIX", "APP12"
@ are additional IFD0 subdirectories. The APP12 support is an
@ experimental Olympus support.
# Do not worry this is no problem, it is safe.
@(Marcus)
2002-03-04 06:21:58 +00:00