Tim's PHP Scripts
Extract Images from a Word DOCX document
(docxtoimg)
This php script will extract the images from a Word DOCX document and save them.
PHP 5 or greater is needed. Will work on PHP 8.2 or later.
Features
This php class will take a DOCX type Word document and extract all the images that are contained in it. They will be then all be saved in a directory with the same name as the original DOCX file. This directory will be automatically created if it does not exist. In the normal mode this class will not provide any output to screen.
The latest version of this script (v.1.0.0) can be downloaded from either:-
Github - https://github.com/timy352/docxtoimg
PHP Classes - https://www.phpclasses.org/package/12265-PHP-Extract-images-from-Microsoft-Word-DOCX-files.html