I have Image Magick installed on the webserver...and the path is correct and the installation is good....the problem i have is whenever i try to resize the pic, i get the thumbnail to work but the original pic does not show. This happens whenever i check the delete original size pic option in resize. I am trying to resize the regular pic to smaller so i can save space on my server. The same thing happens when i try GD 2.X. Am i going something wrong ? Is there something else i can try ? Can someone please help me out with this. :(
are you on windows (webserver)? Windows knows a difference in permissions: write access does not necessarily mean permission to delete. I'd go for checking the permissions in the first place.
GauGau
the server i am on has redhat installed. The thing is....i can delete the original size pics. But whenever i do that, i assumed that it would resize the big pic, make a smaller sized big pic and delete the original sized big pic. But when i go back into the gallery it just shows me the thumbnail and there is an empty box with an 'X' where the pic should be. So all i see is the filmstrip with a mini-version of the picture, but above it....i see no pic. I tried with both GD 2.X and Image magick...same thing....can someone tell me the exact configurations i should have in config to resize properly and delete the original bigger pics. Keep in mind i am trying to save space but dont lose too much picture quality.
marcamillion
Did you disable intermediate pictures? If so, that would explain the behavior. CPG would attempt to open the original picture when you click on the thumbnail, and it would not be there.
There are three sets of photos in CPG:
Thumbnail
Normal (Intermediate)
Original
In the default setup, you click on the thumb, and it displays the resized normal. Then you click on the normal, and it displays the original. If you turned intermediates off, it would attempt to display the original, which you have deleted.
i have intermediate pics enabled. All those settings are enabled...thumbnail, normal ( intermediate ) & original...and all are enabled.
In the Config, set the picture qulaity between 65 and 80.
Set the size for intermediate and thumb pictures to a pixel measurement you like.
If you can't get the batch resizing to work the way you want, you can always hard code for automatic deletion of the originals. Search the 1.1.X forum for my post on this topic. It's at the bottom of a post about disabling popups.
But, if i delete the originals, wont that still give me the 'X' when going thru the my album and the other albums which the original was deleted from ? I dont want to get any x's. I want all the pics to show...two sizes...thumbnail and a bigger size just smaller than it is now.
Please read the /doc files included in the Coppermine download. Then please read the post I mentioned.
I found what you are talking about and I added the code that will delete the pic, but to disable the javascript...i had problems trying to find that code.
I found this code, but the instructions of what to do with it were vague. Here is the code....what should I do with it ?
if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
$winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
$pic_html = "<img src=\"".$picture_url."\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
} else {
$pic_html = "<img src=\"".$picture_url."\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
}
If that is not what i should add, where is the javascript code that I should comment out ? I looked through the code but couldn't find it.
The referenced code is located in displayimage.php. You should replace the code mentioned earlier in that thread with the code you have pasted here.