Hey !
I think the AnalyzeJob is called when the upload is done. I should dive on the rails code to be sure.
Meanwhile, The meta data is needed to know if it’s an image, pdf or a regular file.
This data is also needed to choose the right processor to compress or resize.
So this should be done as soon as possible ( technically just after the upload is done )
I believe AnalyzeJob for the variant does get queued when processed is called, not sure how quickly it occurs though. Maybe calling analyze after processed in the job would be wise.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey !
I think the AnalyzeJob is called when the upload is done. I should dive on the rails code to be sure.
Meanwhile, The meta data is needed to know if it’s an image, pdf or a regular file.
This data is also needed to choose the right processor to compress or resize.
So this should be done as soon as possible ( technically just after the upload is done )
I believe
AnalyzeJob
for the variant does get queued whenprocessed
is called, not sure how quickly it occurs though. Maybe callinganalyze
afterprocessed
in the job would be wise.