Re: python users please save me

@6
That's the least efficient way to do it that possibly exists.  Use pil, or an ffmpeg wrapper, or any of several other things that know how to get this efficiently.  You can almost always get it from encoded headers/metadata or, failing that, by only partly decoding the file.  What you're proposing technically answers the question but is very much in the category of "all I had was a hammer", if you're familiar with the English idiom.  Since the dedicated image libraries aren't actually more code, why not use them?

Numpy/Scipy also only support a very limited set of formats out of the box anyway, unless something has changed.  I'm not actually sure if jpg is on that list or not.

Unfortunately it looks like the built-in Jpeg module was removed in Python 3.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Off-topic room : Blue-Eyed Demon via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Meatbag via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Turkce_Rap via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Blue-Eyed Demon via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Rastislav Kish via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Rastislav Kish via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Rastislav Kish via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : Rastislav Kish via Audiogames-reflector
    • ... AudioGames . net Forum — Off-topic room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Rastislav Kish via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Turkce_Rap via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector

Reply via email to