[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49228] imread logic to read image from a file
[Octave-bug-tracker] [bug #49228] imread logic to read image from a file vs a URL, always fall back or look for protocol prefix?
Thu, 29 Sep 2016 21:06:49 +0000 (UTC)
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Summary: imread logic to read image from a file vs a URL,
always fall back or look for protocol prefix?
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Thu 29 Sep 2016 02:06:47 PM PDT
Category: Octave Function
Severity: 1 - Wish
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: Need Info
Assigned to: None
Discussion Lock: Any
Operating System: Any
Following on from bug #49219, I notice that imread attempts to read any string
argument as if it's a local file first, then tries to read it using urlwrite,
regardless if the string looks like a valid URL or not.
Matlab help for imread hints that it will only attempt to read an image from a
URL if it starts with a protocol prefix (e.g. "http://").
Should imread have some kind of pattern / regex logic on the argument to
determine whether it looks like a file or a URL?
Should imread attempt to read an argument of "http://foo.jpg" as if it were a
local file first? Even if that file exists should it even try to read as a
local file or go straight to attempting to download it with urlwrite?
Should imread attempt to read from a URL if called with a simple name of
What does Matlab do?
Reply to this item at:
Message sent via/by Savannah
- [Octave-bug-tracker] [bug #49228] imread logic to read image from a file vs a URL, always fall back or look for protocol prefix?,
Mike Miller <=