Image Processing on Upload

Started by fortser, Today at 01:43:50 PM

Previous topic - Next topic

fortser

i have an image-processing forum, so many heavy PNG images are being uploaded. I need a script that, at upload time, converts the images to JPEG at 80% quality, while also extracting technical data from the PNG file (similar to EXIF data, but in a slightly different, custom format), and publishes that data in the body of the post alongside the uploaded image.

I've already written a Python script on my local machine that converts the image to the format I need and saves the extracted text data to a .txt file next to the JPEG.

Please advise on the safest way, given the forum's architecture, to hook my script into the existing image-upload process.

Kindred

moved to mod requests

Please update the title to include whether this is a free or paid request
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

fortser

I don't see a button for editing messages (((
if it's really difficult to implement such functionality, then of course I'm ready for a small payment. We'll make an agreement

GL700Wing

@forster There is already a mod which I manage that converts/resizes images on upload (see  Automatic Attachment Rotation (and Resize)) but it doesn't extract any image data.

What image data do you want to extract and where/how do you want to use the data?
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Advertisement: