Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Cannot save as .jpg
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=631
Page 1 of 1

Author:  van [ 20. Nov 2006, 17:32 ]
Post subject:  Cannot save as .jpg

Hello,

I cannot save the images as .jpgs in Internet Explorer.
They only save as bitmaps.
I have checked this from several different computers and 2 different operating systems (XP and W2K) and the result is the same.

I have follwed the suggestions in this post:
http://tinywebgallery.com/forum/viewtopic.php?t=396
but it still does not work.

Here are my setting from the config.php file:
$enable_download = true;
$enable_download_counter=true;
$enable_direct_download=false;
$open_download_in_browser=false;
$open_in_maximized_view=false;
$open_download_in_new_window=false;
$open_as_popup=false;

I have fiddle around with these settings in a variety of combinations but no luck.....

Can you tell me if there is another way to fix this problem?

Thanks for your help. :)

Author:  TinyWebGallery [ 20. Nov 2006, 17:58 ]
Post subject: 

open dl in browser should actually give you a download box.

but you can download the new i_popup.php

and enable open as popup then when you click on the image on the popup you get a download box.

$open_download_in_browser=false; has to be set.

but if you do this with your settings you should get a dl window right away!

have you tried with ie7 too?


And when does this happen? when you rightclick on the normal detail image or in the popup?

/Michael

Author:  van [ 20. Nov 2006, 20:52 ]
Post subject: 

Hello,

Thanks for the answer.

I am not getting any pop-up boxes for the download with my settings the way they are.

I do get the normal windows context menu to "Save as"
Then I get an MS Windows box to specify the location to save the file to.

(Edit I forgot to answer when) It happens when I right click on the main image, not on a thumbnail.

IE 7 is still far from widely adopted, so I still have to fix the problem in IE 6.

Can you tell me what my ideal setting sholud be, are the ones I listed in the first post correct?

In what directory do I place the new i_popup.php file?

Thanks again, it really is an excellent program you made. :) I am sure that we will find a solution to this.

Author:  van [ 20. Nov 2006, 21:54 ]
Post subject: 

Hello,

I want to add to my last post:

On the overview page the thumbnails can be saved as jpg's
On the top 13 page the thumbnails can only be saved as bmp's

I don't know if that helps any....
I keep playing with the parameters but still no luck.

Author:  TinyWebGallery [ 21. Nov 2006, 01:37 ]
Post subject: 

I know - on the overview the thumbs are directly linked to the cache!
in the topx the image.php is used because they are calculated dynamically!

I'll check if I find a workaround for IE.

/Michael

Author:  van [ 21. Nov 2006, 02:16 ]
Post subject: 

Hello,

Thanks for your effort I do appreciate it.

I am still working on it at my end as well.

Author:  TinyWebGallery [ 21. Nov 2006, 02:50 ]
Post subject: 

I have a solution ;).

IE does normally ignore the content type! (as soon as always ie ignores standarts!)

you have to set:

header("Cache-Control: must-revalidate");

below
header("Content-Disposition: ...

in the imagefunctions.inc.php.

The problem is then that the images that are processed by image.php are not cached by the browser anymore! This seems to be the only solution because otherwise ie ignores the header settings.

If you have a better solution - let me know!

with the existing settings you can still get a download box by simply clicking on the image!


the i_popup.php has to owverwrite the file in the i_frames folder.

/Michael

Author:  van [ 21. Nov 2006, 03:11 ]
Post subject: 

Hello,

Thanks for the answer and thanks for staying up so late to help me.
I will try it out.
I now know where to place the i_popup.php file I will try that too.

Let's leave that for tomorrow....

Thanks again

Author:  TinyWebGallery [ 21. Nov 2006, 10:19 ]
Post subject: 

what you can do too:

http://www.tinywebgallery.com/demo2

and click on the image with the left mouse button.
This is a normal setting in the config.

/Michael

Author:  van [ 21. Nov 2006, 16:38 ]
Post subject: 

Hello,

I made the code change you suggested to the imagefunctions.inc.php file
and it is now working perfect.

On my end, after testing on a few different machines, the images are being cached by the browser and on the server as well.

:D So all is good :D

Thank you for your time and effort.

Author:  TinyWebGallery [ 21. Nov 2006, 16:42 ]
Post subject: 

good - then I'll add this to the next release.

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/