Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg30386] Re: Import a jpg/wmf file
  • From: Oliver Werther <oliver-werther at home.com>
  • Date: Tue, 14 Aug 2001 03:45:38 -0400 (EDT)
  • References: <9k5q9s$h7p$1@smc.vnet.net> <9kb0c0$c4n$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I discussed this with technical support from Wolfram. Enclosed is their
response.

I am in general a bit surprised, since I have 0.5GByte of RAM and a
450MHz PC...

Oliver

a)

> As for the memory usage, it is not the size of the jpeg file (KB) that

> determines how much memory is used to display it.  The dimensions of
the
> image in pixels are a better indicator of the amount of memory
needed.  Your
> image is 966 X 761, which is a pretty large image indeed.
>

b)

I tested the Show/Import on a couple of Windows machines and these are
the
results:

OS          Chip          Memory(MB)   Time Elapsed
----------------------------------------------------------------
Win2k      Duron 600Mhz     128        4.206s  s
Win98      P166Mhz          128        17.856  s

This indicates that it is most likely your system that is causing the
slowdown.  I would check to see whether or not there are any processes
running in the background, e.g. antivirus software or any other
utilities
that usually show up in the system tray at the bottom right-hand corner
of your display.  The speed of your hard drive may also be a factor.



"Zakir F. Seidov" wrote:

> 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: [mg30386]      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: TeX and virtual fonts
  • Next by Date: Intersection of polygons and more
  • Previous by thread: Re:Import a jpg/wmf file
  • Next by thread: Re: Re: Two factors of (10^71-1)/9 = R71