Opening image with big file size

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Opening image with big file size

donny008
Hello

I have rather weird situation. I have certain images which have size of
around 13 MB. Since working on these images is time consuming I reduced the
file size to around 1 MB. But once I try to open this new image, its open
the old image and the display information shows 13 MB again. I had assumed
that this was probably associated with the method i used to reduce the file
size (i used photoshop). So now i tried many other softwares to do the same
task of reducing file size. And tried opening them but it all somehow
displays the old 13 MB image. I also tried updating the ImageJ version. I
cant really figure out why this is so. someone has any idea why this happens
?


Regards
Donny




--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

ctrueden
Hi Donny,

Two possible scenarios I can think of are:

1) Somehow you are opening the original file. Maybe it has the same name as
the downsampled version, but is in a different folder?

2) For some reason you didn't have permission to save over the original
file.

Either way, try saving the downsampled image to a totally new filename and
opening that.

-Curtis

On Fri, Aug 20, 2010 at 12:30 PM, Donny George <[hidden email]> wrote:

> Hello
>
> I have rather weird situation. I have certain images which have size of
> around 13 MB. Since working on these images is time consuming I reduced the
> file size to around 1 MB. But once I try to open this new image, its open
> the old image and the display information shows 13 MB again. I had assumed
> that this was probably associated with the method i used to reduce the file
> size (i used photoshop). So now i tried many other softwares to do the same
> task of reducing file size. And tried opening them but it all somehow
> displays the old 13 MB image. I also tried updating the ImageJ version. I
> cant really figure out why this is so. someone has any idea why this
> happens
> ?
>
>
> Regards
> Donny
>
>
>
>
> --
> Donny George
>
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

Glen MacDonald-2
In reply to this post by donny008
Are you converting the image to jpeg?  The file size in the directory is the compressed size, but files will open to the original size.  You will need to remove pixels/voxels by cropping or sub-sampling.  If bit depth is > 8-bits then cut file size by reducing to 8-bits.  If multi-channel, reduce channel number.  Or buy more memory.

The best approach will depend on specifics of your files and their application.  
Glen

Glen MacDonald
Core for Communication Research
Virginia Merrill Bloedel Hearing Research Center
Box 357923
University of Washington
Seattle, WA 98195-7923  USA
(206) 616-4156
[hidden email]


On Aug 20, 2010, at 10:30 AM, Donny George wrote:

> Hello
>
> I have rather weird situation. I have certain images which have size of
> around 13 MB. Since working on these images is time consuming I reduced the
> file size to around 1 MB. But once I try to open this new image, its open
> the old image and the display information shows 13 MB again. I had assumed
> that this was probably associated with the method i used to reduce the file
> size (i used photoshop). So now i tried many other softwares to do the same
> task of reducing file size. And tried opening them but it all somehow
> displays the old 13 MB image. I also tried updating the ImageJ version. I
> cant really figure out why this is so. someone has any idea why this happens
> ?
>
>
> Regards
> Donny
>
>
>
>
> --
> Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

donny008
In reply to this post by ctrueden
Hello Curtis

I already had tried renaming the files and also saving it in different
locations but it didnt work. Imagej correctly displays the path each of the
images though.

The second reason seems one remote possibility but how could I overcome this
problem. Any clues ?


Regards
Donny


On Fri, Aug 20, 2010 at 7:36 PM, Curtis Rueden <[hidden email]> wrote:

> Hi Donny,
>
> Two possible scenarios I can think of are:
>
> 1) Somehow you are opening the original file. Maybe it has the same name as
> the downsampled version, but is in a different folder?
>
> 2) For some reason you didn't have permission to save over the original
> file.
>
> Either way, try saving the downsampled image to a totally new filename and
> opening that.
>
> -Curtis
>
> On Fri, Aug 20, 2010 at 12:30 PM, Donny George <[hidden email]> wrote:
>
> > Hello
> >
> > I have rather weird situation. I have certain images which have size of
> > around 13 MB. Since working on these images is time consuming I reduced
> the
> > file size to around 1 MB. But once I try to open this new image, its open
> > the old image and the display information shows 13 MB again. I had
> assumed
> > that this was probably associated with the method i used to reduce the
> file
> > size (i used photoshop). So now i tried many other softwares to do the
> same
> > task of reducing file size. And tried opening them but it all somehow
> > displays the old 13 MB image. I also tried updating the ImageJ version. I
> > cant really figure out why this is so. someone has any idea why this
> > happens
> > ?
> >
> >
> > Regards
> > Donny
> >
> >
> >
> >
> > --
> > Donny George
> >
>



--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

Benjamin Grant
Donny,
given that you're saving it as a different filename, then the 2nd reason is
not possible, if you're saving it as a different filename you don't need
permission to save over the file. Use your preferred program and save the
file in a totally new location with a different name. Exit the photo program
and don't open ImageJ yet. Right click the file and go to properties.  Tell
us what the file size is. Is it truly 1 MB. If it is, try opening the file
in ImageJ.  If the confirmed 1 MB file opens in imageJ as 13 MB let us know,
but I suspect this is not the case. Keep us updated
Ben

On Fri, Aug 20, 2010 at 12:51 PM, Donny George <[hidden email]> wrote:

> Hello Curtis
>
> I already had tried renaming the files and also saving it in different
> locations but it didnt work. Imagej correctly displays the path each of the
> images though.
>
> The second reason seems one remote possibility but how could I overcome
> this
> problem. Any clues ?
>
>
> Regards
> Donny
>
>
> On Fri, Aug 20, 2010 at 7:36 PM, Curtis Rueden <[hidden email]> wrote:
>
> > Hi Donny,
> >
> > Two possible scenarios I can think of are:
> >
> > 1) Somehow you are opening the original file. Maybe it has the same name
> as
> > the downsampled version, but is in a different folder?
> >
> > 2) For some reason you didn't have permission to save over the original
> > file.
> >
> > Either way, try saving the downsampled image to a totally new filename
> and
> > opening that.
> >
> > -Curtis
> >
> > On Fri, Aug 20, 2010 at 12:30 PM, Donny George <[hidden email]>
> wrote:
> >
> > > Hello
> > >
> > > I have rather weird situation. I have certain images which have size of
> > > around 13 MB. Since working on these images is time consuming I reduced
> > the
> > > file size to around 1 MB. But once I try to open this new image, its
> open
> > > the old image and the display information shows 13 MB again. I had
> > assumed
> > > that this was probably associated with the method i used to reduce the
> > file
> > > size (i used photoshop). So now i tried many other softwares to do the
> > same
> > > task of reducing file size. And tried opening them but it all somehow
> > > displays the old 13 MB image. I also tried updating the ImageJ version.
> I
> > > cant really figure out why this is so. someone has any idea why this
> > > happens
> > > ?
> > >
> > >
> > > Regards
> > > Donny
> > >
> > >
> > >
> > >
> > > --
> > > Donny George
> > >
> >
>
>
>
> --
> Donny George
>
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

donny008
In reply to this post by donny008
thank you wayne

now that does work. changing the pixel size to 1024x1024, now the size is 1
mb

Thnks

donny


On Fri, Aug 20, 2010 at 7:54 PM, Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]> wrote:

> Donny,
>
> You need to reduce the number of pixels in the image. For example, a
> 2048x2048 pixel RGB image requires 16MB of memory when opened in ImageJ (4
> bytes per pixel) but it only requires 4MB after is reduced to 1024x1024
> pixels.
>
> -wayne
>
>
> On Aug 20, 2010, at 1:30 PM, Donny George wrote:
>
> > Hello
> >
> > I have rather weird situation. I have certain images which have size of
> > around 13 MB. Since working on these images is time consuming I reduced
> the
> > file size to around 1 MB. But once I try to open this new image, its open
> > the old image and the display information shows 13 MB again. I had
> assumed
> > that this was probably associated with the method i used to reduce the
> file
> > size (i used photoshop). So now i tried many other softwares to do the
> same
> > task of reducing file size. And tried opening them but it all somehow
> > displays the old 13 MB image. I also tried updating the ImageJ version. I
> > cant really figure out why this is so. someone has any idea why this
> happens
> > ?
> >
> >
> > Regards
> > Donny
> >
> >
> >
> >
> > --
> > Donny George
>
>


--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

donny008
In reply to this post by Glen MacDonald-2
No Glen i dont convert to jpeg. However by changing the pixel size the
problem has been solved. thankyou



On Fri, Aug 20, 2010 at 7:43 PM, Glen MacDonald <[hidden email]>wrote:

> Are you converting the image to jpeg?  The file size in the directory is
> the compressed size, but files will open to the original size.  You will
> need to remove pixels/voxels by cropping or sub-sampling.  If bit depth is >
> 8-bits then cut file size by reducing to 8-bits.  If multi-channel, reduce
> channel number.  Or buy more memory.
>
> The best approach will depend on specifics of your files and their
> application.
> Glen
>
> Glen MacDonald
> Core for Communication Research
> Virginia Merrill Bloedel Hearing Research Center
> Box 357923
> University of Washington
> Seattle, WA 98195-7923  USA
> (206) 616-4156
> [hidden email]
>
>
> On Aug 20, 2010, at 10:30 AM, Donny George wrote:
>
> > Hello
> >
> > I have rather weird situation. I have certain images which have size of
> > around 13 MB. Since working on these images is time consuming I reduced
> the
> > file size to around 1 MB. But once I try to open this new image, its open
> > the old image and the display information shows 13 MB again. I had
> assumed
> > that this was probably associated with the method i used to reduce the
> file
> > size (i used photoshop). So now i tried many other softwares to do the
> same
> > task of reducing file size. And tried opening them but it all somehow
> > displays the old 13 MB image. I also tried updating the ImageJ version. I
> > cant really figure out why this is so. someone has any idea why this
> happens
> > ?
> >
> >
> > Regards
> > Donny
> >
> >
> >
> >
> > --
> > Donny George
>



--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

donny008
In reply to this post by Benjamin Grant
Well Ben

that was exactly the problem, the 1 mb file opened as 13 mb in imagej.
though the problem has been solved now. I would be eager to know why this
was happening

don


On Fri, Aug 20, 2010 at 7:55 PM, Benjamin Grant <[hidden email]> wrote:

> Donny,
> given that you're saving it as a different filename, then the 2nd reason is
> not possible, if you're saving it as a different filename you don't need
> permission to save over the file. Use your preferred program and save the
> file in a totally new location with a different name. Exit the photo
> program
> and don't open ImageJ yet. Right click the file and go to properties.  Tell
> us what the file size is. Is it truly 1 MB. If it is, try opening the file
> in ImageJ.  If the confirmed 1 MB file opens in imageJ as 13 MB let us
> know,
> but I suspect this is not the case. Keep us updated
> Ben
>
> On Fri, Aug 20, 2010 at 12:51 PM, Donny George <[hidden email]> wrote:
>
> > Hello Curtis
> >
> > I already had tried renaming the files and also saving it in different
> > locations but it didnt work. Imagej correctly displays the path each of
> the
> > images though.
> >
> > The second reason seems one remote possibility but how could I overcome
> > this
> > problem. Any clues ?
> >
> >
> > Regards
> > Donny
> >
> >
> > On Fri, Aug 20, 2010 at 7:36 PM, Curtis Rueden <[hidden email]>
> wrote:
> >
> > > Hi Donny,
> > >
> > > Two possible scenarios I can think of are:
> > >
> > > 1) Somehow you are opening the original file. Maybe it has the same
> name
> > as
> > > the downsampled version, but is in a different folder?
> > >
> > > 2) For some reason you didn't have permission to save over the original
> > > file.
> > >
> > > Either way, try saving the downsampled image to a totally new filename
> > and
> > > opening that.
> > >
> > > -Curtis
> > >
> > > On Fri, Aug 20, 2010 at 12:30 PM, Donny George <[hidden email]>
> > wrote:
> > >
> > > > Hello
> > > >
> > > > I have rather weird situation. I have certain images which have size
> of
> > > > around 13 MB. Since working on these images is time consuming I
> reduced
> > > the
> > > > file size to around 1 MB. But once I try to open this new image, its
> > open
> > > > the old image and the display information shows 13 MB again. I had
> > > assumed
> > > > that this was probably associated with the method i used to reduce
> the
> > > file
> > > > size (i used photoshop). So now i tried many other softwares to do
> the
> > > same
> > > > task of reducing file size. And tried opening them but it all somehow
> > > > displays the old 13 MB image. I also tried updating the ImageJ
> version.
> > I
> > > > cant really figure out why this is so. someone has any idea why this
> > > > happens
> > > > ?
> > > >
> > > >
> > > > Regards
> > > > Donny
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Donny George
> > > >
> > >
> >
> >
> >
> > --
> > Donny George
> >
>



--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

Benjamin Grant
What image type were you saving as? Is it a compressed format?

On Fri, Aug 20, 2010 at 1:15 PM, Donny George <[hidden email]> wrote:

> Well Ben
>
> that was exactly the problem, the 1 mb file opened as 13 mb in imagej.
> though the problem has been solved now. I would be eager to know why this
> was happening
>
> don
>
>
> On Fri, Aug 20, 2010 at 7:55 PM, Benjamin Grant <[hidden email]> wrote:
>
> > Donny,
> > given that you're saving it as a different filename, then the 2nd reason
> is
> > not possible, if you're saving it as a different filename you don't need
> > permission to save over the file. Use your preferred program and save the
> > file in a totally new location with a different name. Exit the photo
> > program
> > and don't open ImageJ yet. Right click the file and go to properties.
>  Tell
> > us what the file size is. Is it truly 1 MB. If it is, try opening the
> file
> > in ImageJ.  If the confirmed 1 MB file opens in imageJ as 13 MB let us
> > know,
> > but I suspect this is not the case. Keep us updated
> > Ben
> >
> > On Fri, Aug 20, 2010 at 12:51 PM, Donny George <[hidden email]>
> wrote:
> >
> > > Hello Curtis
> > >
> > > I already had tried renaming the files and also saving it in different
> > > locations but it didnt work. Imagej correctly displays the path each of
> > the
> > > images though.
> > >
> > > The second reason seems one remote possibility but how could I overcome
> > > this
> > > problem. Any clues ?
> > >
> > >
> > > Regards
> > > Donny
> > >
> > >
> > > On Fri, Aug 20, 2010 at 7:36 PM, Curtis Rueden <[hidden email]>
> > wrote:
> > >
> > > > Hi Donny,
> > > >
> > > > Two possible scenarios I can think of are:
> > > >
> > > > 1) Somehow you are opening the original file. Maybe it has the same
> > name
> > > as
> > > > the downsampled version, but is in a different folder?
> > > >
> > > > 2) For some reason you didn't have permission to save over the
> original
> > > > file.
> > > >
> > > > Either way, try saving the downsampled image to a totally new
> filename
> > > and
> > > > opening that.
> > > >
> > > > -Curtis
> > > >
> > > > On Fri, Aug 20, 2010 at 12:30 PM, Donny George <[hidden email]>
> > > wrote:
> > > >
> > > > > Hello
> > > > >
> > > > > I have rather weird situation. I have certain images which have
> size
> > of
> > > > > around 13 MB. Since working on these images is time consuming I
> > reduced
> > > > the
> > > > > file size to around 1 MB. But once I try to open this new image,
> its
> > > open
> > > > > the old image and the display information shows 13 MB again. I had
> > > > assumed
> > > > > that this was probably associated with the method i used to reduce
> > the
> > > > file
> > > > > size (i used photoshop). So now i tried many other softwares to do
> > the
> > > > same
> > > > > task of reducing file size. And tried opening them but it all
> somehow
> > > > > displays the old 13 MB image. I also tried updating the ImageJ
> > version.
> > > I
> > > > > cant really figure out why this is so. someone has any idea why
> this
> > > > > happens
> > > > > ?
> > > > >
> > > > >
> > > > > Regards
> > > > > Donny
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Donny George
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Donny George
> > >
> >
>
>
>
> --
> Donny George
>
Reply | Threaded
Open this post in threaded view
|

Re: Opening image with big file size

donny008
i was saving it as tiff


On Fri, Aug 20, 2010 at 8:27 PM, Benjamin Grant <[hidden email]> wrote:

> What image type were you saving as? Is it a compressed format?
>
> On Fri, Aug 20, 2010 at 1:15 PM, Donny George <[hidden email]> wrote:
>
> > Well Ben
> >
> > that was exactly the problem, the 1 mb file opened as 13 mb in imagej.
> > though the problem has been solved now. I would be eager to know why this
> > was happening
> >
> > don
> >
> >
> > On Fri, Aug 20, 2010 at 7:55 PM, Benjamin Grant <[hidden email]> wrote:
> >
> > > Donny,
> > > given that you're saving it as a different filename, then the 2nd
> reason
> > is
> > > not possible, if you're saving it as a different filename you don't
> need
> > > permission to save over the file. Use your preferred program and save
> the
> > > file in a totally new location with a different name. Exit the photo
> > > program
> > > and don't open ImageJ yet. Right click the file and go to properties.
> >  Tell
> > > us what the file size is. Is it truly 1 MB. If it is, try opening the
> > file
> > > in ImageJ.  If the confirmed 1 MB file opens in imageJ as 13 MB let us
> > > know,
> > > but I suspect this is not the case. Keep us updated
> > > Ben
> > >
> > > On Fri, Aug 20, 2010 at 12:51 PM, Donny George <[hidden email]>
> > wrote:
> > >
> > > > Hello Curtis
> > > >
> > > > I already had tried renaming the files and also saving it in
> different
> > > > locations but it didnt work. Imagej correctly displays the path each
> of
> > > the
> > > > images though.
> > > >
> > > > The second reason seems one remote possibility but how could I
> overcome
> > > > this
> > > > problem. Any clues ?
> > > >
> > > >
> > > > Regards
> > > > Donny
> > > >
> > > >
> > > > On Fri, Aug 20, 2010 at 7:36 PM, Curtis Rueden <[hidden email]>
> > > wrote:
> > > >
> > > > > Hi Donny,
> > > > >
> > > > > Two possible scenarios I can think of are:
> > > > >
> > > > > 1) Somehow you are opening the original file. Maybe it has the same
> > > name
> > > > as
> > > > > the downsampled version, but is in a different folder?
> > > > >
> > > > > 2) For some reason you didn't have permission to save over the
> > original
> > > > > file.
> > > > >
> > > > > Either way, try saving the downsampled image to a totally new
> > filename
> > > > and
> > > > > opening that.
> > > > >
> > > > > -Curtis
> > > > >
> > > > > On Fri, Aug 20, 2010 at 12:30 PM, Donny George <[hidden email]
> >
> > > > wrote:
> > > > >
> > > > > > Hello
> > > > > >
> > > > > > I have rather weird situation. I have certain images which have
> > size
> > > of
> > > > > > around 13 MB. Since working on these images is time consuming I
> > > reduced
> > > > > the
> > > > > > file size to around 1 MB. But once I try to open this new image,
> > its
> > > > open
> > > > > > the old image and the display information shows 13 MB again. I
> had
> > > > > assumed
> > > > > > that this was probably associated with the method i used to
> reduce
> > > the
> > > > > file
> > > > > > size (i used photoshop). So now i tried many other softwares to
> do
> > > the
> > > > > same
> > > > > > task of reducing file size. And tried opening them but it all
> > somehow
> > > > > > displays the old 13 MB image. I also tried updating the ImageJ
> > > version.
> > > > I
> > > > > > cant really figure out why this is so. someone has any idea why
> > this
> > > > > > happens
> > > > > > ?
> > > > > >
> > > > > >
> > > > > > Regards
> > > > > > Donny
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Donny George
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Donny George
> > > >
> > >
> >
> >
> >
> > --
> > Donny George
> >
>



--
Donny George