forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: turtleboy on June 12, 2004, 02:57:53 am

Title: Automatically resizing/deleting original images on upload..
Post by: turtleboy on June 12, 2004, 02:57:53 am
I was wondering if there was anyway to do this in 1.3.0

I tried the method that worked in 1.2.1 as discussed in this thread:
http://forum.coppermine-gallery.net/index.php?topic=464.0

But it did not work, is there any way to implement this in 1.3.0?
Title: Re: Automatically resizing/deleting original images on upload..
Post by: Joachim Müller on June 17, 2004, 12:34:35 am
resize on upload is in the works for the next version of coppermine.

GauGau
Title: Re: Automatically resizing/deleting original images on upload..
Post by: GGallery on June 17, 2004, 12:55:09 am
somehow related: is there a way to have cpg automatically convert all uploaded pics to jpg (normal/thumb/original)?
Title: Re: Automatically resizing/deleting original images on upload..
Post by: hyperion on June 17, 2004, 01:08:15 am
Yes.

You do it with GD by changinf the write method. (imagepng() becomes imagejpeg())

In IM, you alter the destination filename by changing it's extension to .jpg, which tells image magick to make it a jpeg.