[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
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #49228] imread logic to read image from a file vs a URL, always fall back or look for protocol prefix? |
Date: |
Thu, 29 Sep 2016 21:06:49 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49228>
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
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
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
"gnu.org"?
What does Matlab do?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49228>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [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 <=