bugGNU Octave - Bugs: bug #55796, SVG Images support for imread

 
 

bug #55796: SVG Images support for imread

Submitter:  None
Submitted:  Thu 28 Feb 2019 02:30:22 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Need Info Assigned to:  None
Originator Name:  khalil2535 Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Mar 2019 08:37:36 PM UTC, comment #4: 

Please see also the discussion in bug #55486.

IMHO if someone really wants to add support for rasterizing vector formats (through gostscript or whatever), it'd better be done in a separate function, and let imread keep on reading pixels only.

Pantxo Diribarne <pantxo>
Group Member
Fri 01 Mar 2019 08:56:05 AM UTC, comment #3: 

FWIW, imread and related functions in Matlab seem to only support raster graphics. Vector graphics don't seem to be supported at least for R2016a on Windows:

>> imformats

EXT       ISA     INFO        READ      WRITE     ALPHA  DESCRIPTION
-----------------------------------------------------------------------------------------
bmp       isbmp   imbmpinfo   readbmp   writebmp  0      Windows Bitmap
cur       iscur   imcurinfo   readcur             1      Windows Cursor resources
fts fits  isfits  imfitsinfo  readfits            0      Flexible Image Transport System
gif       isgif   imgifinfo   readgif   writegif  0      Graphics Interchange Format
hdf       ishdf   imhdfinfo   readhdf   writehdf  0      Hierarchical Data Format
ico       isico   imicoinfo   readico             1      Windows Icon resources
j2c j2k   isjp2   imjp2info   readjp2   writej2c  0      JPEG 2000 (raw codestream)
jp2       isjp2   imjp2info   readjp2   writejp2  0      JPEG 2000 (Part 1)
jpf jpx   isjp2   imjp2info   readjp2             0      JPEG 2000 (Part 2)
jpg jpeg  isjpg   imjpginfo   readjpg   writejpg  0      Joint Photographic Experts Group
pbm       ispbm   impnminfo   readpnm   writepnm  0      Portable Bitmap
pcx       ispcx   impcxinfo   readpcx   writepcx  0      Windows Paintbrush
pgm       ispgm   impnminfo   readpnm   writepnm  0      Portable Graymap
png       ispng   impnginfo   readpng   writepng  1      Portable Network Graphics
pnm       ispnm   impnminfo   readpnm   writepnm  0      Portable Any Map
ppm       isppm   impnminfo   readpnm   writepnm  0      Portable Pixmap
ras       isras   imrasinfo   readras   writeras  1      Sun Raster
tif tiff  istif   imtifinfo   readtif   writetif  0      Tagged Image File Format
xwd       isxwd   imxwdinfo   readxwd   writexwd  0      X Window Dump


Anyway if someone wants to implement imread for vector graphics (incl. svg), I won't oppose.

Markus Mützel <mmuetzel>
Group administrator
Fri 01 Mar 2019 06:25:07 AM UTC, comment #2: 

I think you are referring to the imformats, imread, and imwrite functions, is that correct?

Yes.

Anonymous
Thu 28 Feb 2019 08:02:07 PM UTC, comment #1: 

It's a little unclear what this bug report refers to. For example, Octave can definitely print figures to SVG as an output format.

I think you are referring to the imformats, imread, and imwrite functions, is that correct?

Mike Miller <mtmiller>
Group Member
Thu 28 Feb 2019 02:30:22 PM UTC, original submission:  

We need to support .svg format images such it's widely used , even the logo for Octave in gnu.org website is in .svg format (see https://www.gnu.org/software/octave/img/octave-logo.svg).

I know it's hard because the svg is a very complex specification but It's also used alot , at least change the format of logo to another format that's supported by the program it presents. (don't do that plz xD)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-01 mmuetzel SummarySVG Images support SVG Images support for imread
    2019-02-28 mtmiller Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        StatusNone Need Info
        Release5.1.0 dev

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code