MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re:Import a jpg/wmf file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30211] Re:Import a jpg/wmf file
  • From: seidovzf at yahoo.com (Zakir F. Seidov)
  • Date: Thu, 2 Aug 2001 03:16:05 -0400 (EDT)
  • References: <9k5q9s$h7p$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Unfortunately, I have no suggestions...
instead I may add my session
(presentation, of course differs from real session):

In[1]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[1]:={1127248, 1160944}

In[2]:=$Version
Out[2]="4.0 for Microsoft Windows (December 5, 1999)"

In[3]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[3]:={1129304, 1160944}

In[4]:=Timing[imp = Import["ref24.jpg"];]
Out[4]={20.93 Second, Null}

In[5]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[5]:={22947160, 22952616}In[6]:=

In[6]:=Timing[Show[imp];] 
Out[6]={288.58 Second, Null}

In[7]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[7]:={22949256, 158176976}

In[8]:=Timing[Show[imp];] 
Out[8]={353.99 Second, Null}

In[9]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[9]:={22951256, 158179072}

In[10]:=Timing[Show[imp];] 
Out[10]={408.53 Second, Null}

In[11]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[11]:={22953240, 158181072}

In[12]:=Timing[Show[imp];] 
Out[12]={418.47 Second, Null}

In[13]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[13]:={22955256, 158183056}

In[14]:=Timing[Show[imp];] 
Out[14]={418.48 Second, Null}

In[15]:=Timing[Show[imp];] 
Out[15]={423.09 Second, Null}

In[16]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[16]:={22958184, 158185968}

In[17]:=Timing[Show[imp];] 
Out[17]={420.51 Second, Null}

In[18]:=Timing[Show[imp];] 
Out[18]={430.46 Second, Null}

In[19]:=Print[{MemoryInUse[], MaxMemoryUsed[]}]
 From In[19]:={22962600, 158189680}
%%%%%%%%%%%%%%%%%%%%%%%%%%%

Why so giant MemoryInUse = 22MB, and MaxMemoryUsed = 158 MB?!

Why so large and variable Timing?! The file ref24.jpg is
50709 Bytes, and I've  omitted output of Show, of course.

Notebook itself when saved is only of 8358 B.

Thanks,
Zak
%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%
Subject: [mg30211]      Import a jpg/wmf file
Author:       Oliver Werther <oliverXXwerther at home.com>
Organization: Steven M. Christensen and Associates, Inc and
MathTensor, Inc.
All,
I import  a 37kByte jpeg file...

Timing[Show[Import ["name.jpg"]]]

and it takes Mathematica 30 seconds to do this!? (25 sec. for a bmp
file).

- wmf is only supported for export.

Any suggestions?

thanks
Oliver


  • Prev by Date: Re: Any quantum chemists / physicists?
  • Next by Date: Re: GLExplorer, MathLive, Dynamic Visualization
  • Previous by thread: AW: Finding the intersect of two curves
  • Next by thread: Re: Import a jpg/wmf file