What is intermediate picture used for? What is intermediate picture used for?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

What is intermediate picture used for?

Started by je79ayps, March 26, 2004, 04:59:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

je79ayps

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?

je79ayps

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?

Casper

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

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

Casper

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?
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

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.

Joachim Müller

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

je79ayps

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.

Casper

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.
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

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?

Casper

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.
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

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

je79ayps

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.

Joachim Müller

in displayimage, find            $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            //$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

je79ayps

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?

Joachim Müller

change above modification once more and make it            //$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

je79ayps

Thanks gaugau!

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

Joachim Müller

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