There are PC utilities that do a good job of this. You may be able to do it through PHP but it may not give you as good and accurate a result as you can get from the free PC utilities.
If you are determined to try it, you can try the following utilities:
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.