Search found 4 matches

by twobob
2017-05-03T13:43:58-07:00
Forum: Users
Topic: Detect if a picture is in landscape or portrait mode? find out width+height?
Replies: 8
Views: 22779

Re: Detect if a picture is in landscape or portrait mode? find out width+height?

nice catch. thanks for the heads up. the FX: INFO: syntax is day 1 for me, but Boolean logic I should have got ;)
by twobob
2017-05-03T13:35:29-07:00
Forum: Kudos and Rants
Topic: Forum status
Replies: 5
Views: 105476

Re: Forum status

+1, the sign up confirmation page was unavailable for a while.

Probably an alien robot attack as you say.

How can I live in a world where that sentence is meaningful?

:)
by twobob
2017-05-03T12:36:59-07:00
Forum: Users
Topic: Detect if a picture is in landscape or portrait mode? find out width+height?
Replies: 8
Views: 22779

Re: Detect if a picture is in landscape or portrait mode? find out width+height?

import os, subprocess subprocess.run(['Magick', './IMG_3160.jpg' ,'-identify' , '-format' ,'"%[fx:(w/h>1)?1:0]"','info:'], stdout=subprocess.PIPE).stdout.decode('utf-8')[-2] Quick hack on python (on windows) Returns 1 or 0 - Zero is portrait. 1 is landscape think it returns 1 on a perfectly square ...
by twobob
2017-05-03T12:36:24-07:00
Forum: Users
Topic: Detect if a picture is in landscape or portrait mode? find out width+height?
Replies: 8
Views: 22779

Re: Detect if a picture is in landscape or portrait mode? find out width+height?

import os, subprocess subprocess.run(['Magick', './IMG_3160.jpg' ,'-identify' , '-format' ,'"%[fx:(w/h>1)?1:0]"','info:'], stdout=subprocess.PIPE).stdout.decode('utf-8')[-2] Quick hack on pyhon (on windows) Returns 1 or 0 - Zero is portrait. think it returns 1 on a perfectly square one... Hope it ...