I have a Linux project which I convert into windows project with PHP and JS .I need to tail the image to some bytes and compress the image , as shown in sh file below. Please help me achieve the same in windows with php, ImageMagick or anyway.
tail -c 142500 imgFile.bmp > imgFile.argb8888
./compress imgFile.argb8888 imgFile.argb8888.comp
./compress is from Z-lib.Can I do everything with ImageMagick