- Handle situations when an inspection gets lost
build: ./bin/uberjar
.
The Media-Service consists of several services like the server
one or more
inspectors
etc.
Invoking ./bin/XYZ-run
relinks .nrepl-port
to the last started service!
./bin/server-run
Run: ./bin/inspector-run
Config: ./bin/inspector-create-config
Create some test files in the old store
FactoryGirl.create :research_video_media_entry, responsible_user_id: '653bf621-45c8-4a23-a15e-b29036aa9b10'
Remove all media_files
etc:
TRUNCATE TABLE media_files CASCADE;
THUMBNAILS = { maximum: nil,
x_large: { width: 1024, height: 768 },
large: { width: 620, height: 500 },
medium: { width: 300, height: 300 },
small_125: { width: 125, height: 125 },
small: { width: 100, height: 100 } }
-
see
create_previews!
indatalayer/app/models/media_file.rb
-
effective conversion see
convert
inddatalayer/lib/file_conversion.rb
, uses the commandconvert
from ImageMagic
TLDR: pre-signed URLs seems likely to work for AWS and other implementations
https://docs.min.io/docs/upload-files-from-browser-using-pre-signed-urls.html
TLDR: seems to work, but not in every case, falls back to full download
- Does ExitTool stop processing a file (or stream) when it reaches the required data? i.e. if the metadata is in the header (or the first bit of the file) will it find it without having to read the whole file? Yes, if possible. See the -fast option.
https://exiftool.org/forum/index.php?topic=7579.0
https://exiftool.org/exiftool_pod.html#PIPING-EXAMPLES
curl -s http://a.domain.com/bigfile.jpg | exiftool -fast - Extract information from an image over the internet using the cURL utility. The -fast option prevents exiftool from scanning for trailer information, so only the meta information header is transferred.