Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: What is intermediate picture used for?  (Read 7371 times)

0 Members and 1 Guest are viewing this topic.

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« on: March 26, 2004, 04:59:34 pm »

I was FTP'ing my site and saw in the 'albums' folder I had some normal_picture.jpg files that are bigger than the uploaded picture.

After searching the board I've found the intermediate picture feature and I guess this is why I get these normal pictures.

My question is what are these pictures good for and how come they get bigger than the original uploaded picture? Can I delete the normal pictures if I don't use them?
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #1 on: March 26, 2004, 05:05:30 pm »

I guess I figured it out myself. :)

Is the reason why the intermediate picture gets bigger because I set the quality of the picture to 100?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
What is intermediate picture used for?
« Reply #2 on: March 26, 2004, 05:04:06 pm »

Are they gif files, by any chance?
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #3 on: March 29, 2004, 08:30:35 pm »

*Seems like the forum thinks Casper had the last post, so I'll just bump it*.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
What is intermediate picture used for?
« Reply #4 on: March 29, 2004, 09:44:53 pm »

Quote from: "je79ayps"
I guess I figured it out myself. :)


I guess the forum thought you had solved the problem, reading this line, at least I did  :wink:

But that does not answer my earlier question, are these gif files?
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #5 on: March 30, 2004, 09:50:32 am »

It's jpg files.

What I do is that I save my pictues through ACDSee at 85 quality and then upload the pictures with 100 quality.

This is the case:

Original: 38.5 kb
Thumb: 7.73 kb
Normal: 73.9 kb

Then 1 picture suddenly takes up a lot of space.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
What is intermediate picture used for?
« Reply #6 on: March 30, 2004, 10:04:25 am »

100% quality means lossless (or no compression at all) - it's only natural that your files increase in size. In coppermine config, set your jpeg compression level to something like 85% as well.

The option to set it to 100% is only meant for people on an intranet where details with extreme magnification matter and picture size doesn't  (e.g. a user reported once he'd be using coppermine to share medical data like x-ray pics on a clinic's intranet).

GauGau
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #7 on: March 30, 2004, 12:57:13 pm »

I just thought that 100% quality was equal to the original picture in size and quality.

But I think I get it now how the intermediate picture works and I can see that there's no point in setting it to 100% as one always can see the picture in the original quality when viewing it in full size.

I've been testing it a bit and now the normal pictures don't get bigger than the original so I still find it a bit weird that some of my older normal pictures are bigger than the original.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
What is intermediate picture used for?
« Reply #8 on: March 30, 2004, 01:49:52 pm »

You can use the re-size utility to rebuild new thumbs and intermediate pics at your new settings.  It's easy, and you do one album at a time.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #9 on: April 01, 2004, 10:04:28 pm »

Okay, I can't seem to find the resize function in the hardwired theme?

Here's the deal - if I shouldn't bother my users of resizing their pictures would I then just allow them to upload everything and then I afterwards kan just juse the resize function?

Should the intermediate function be on or off or what is the connection if there is one?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
What is intermediate picture used for?
« Reply #10 on: April 01, 2004, 11:24:10 pm »

It's a shame that hardwired, a very popular theme, has a few things wrong with it.  The missing link to the resize utility is one.
But you can use it, by typing the url direct, just change 'index.php' to 'util.php' in the address bar, and away you go.
Or change theme.

The resize function won't change the size of the original they upload, but it can delete it, and just use the intermediate, if you have set for intermediates to be made.

You should have the function to make intermediate on, especially if you are going to allow large file/pixel size uploads.  You are likely to get problems with large pixel uploads, unless your server allows more memory usage than normal.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #11 on: April 02, 2004, 02:39:45 pm »

OK, I'll just use the util.php file.

Another thing with the intermediate function. I would like that thumbs only are 75px heigh so that it doesn't change the design. I would like my normals only to be 640px max aspect.

As I see this is not possible when I have chosen "height" in the config. Either I should choose "max aspect" and live with the thumbs being 75px overall. Isn't this correct?

Here's my config part:

Pictures and thumbnails settings
Quality for JPEG files: 100
Max dimension of a thumbnail: 75px
Use dimension ( width or height or Max aspect for thumbnail ): height
Create intermediate pictures: yes
Max width or height of an intermediate picture: 640
Max size for uploaded pictures (KB): 512kb
Max width or height for uploaded pictures (pixels): 1280
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #12 on: April 02, 2004, 03:16:59 pm »

Yet another thing. :o)

Is there anyway to disable the view picture in full size function? Since I've set my intermediate picture to 640px I don't want it to be possible to view pictures in full size when they are larger than that.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
What is intermediate picture used for?
« Reply #13 on: April 02, 2004, 03:48:01 pm »

in displayimage, find
Code: [Select]
           $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
and replace with
Code: [Select]
           //$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
            $pic_html = "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            //$pic_html .= "</a>\n";

In the future, please post one question per thread only!

GauGau
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #14 on: April 02, 2004, 06:21:53 pm »

OK, I just figured it to be an offshoot from the topic but nevertheless - thanks. One thing - how do I remove the alt tag that says "click on the picture to enlarge it"?

Got any solution to my thumb vs. normal question?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
What is intermediate picture used for?
« Reply #15 on: April 02, 2004, 06:53:48 pm »

change above modification once more and make it
Code: [Select]
           //$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
            $pic_html = "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"\" /><br />";
            //$pic_html .= "</a>\n";
GauGau
Logged

je79ayps

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
What is intermediate picture used for?
« Reply #16 on: April 03, 2004, 09:55:15 am »

Thanks gaugau!

Did you have anything to say about the thumb vs. normal pictures?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
What is intermediate picture used for?
« Reply #17 on: April 03, 2004, 10:02:27 am »

OK, this thread has had it's share of thread drift. Remember the "one question per thread" policy. Time to lock the thread now, since you already got answers to more questions in one thread than you should have gotten in the first place.
So, if you have further question, please post your question (and only one) in a new thread.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.05 seconds with 18 queries.