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: Automatically resizing/deleting original images on upload..  (Read 3152 times)

0 Members and 1 Guest are viewing this topic.

turtleboy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
    • SkylineDesigns

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?

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Automatically resizing/deleting original images on upload..
« Reply #1 on: June 17, 2004, 12:34:35 am »

resize on upload is in the works for the next version of coppermine.

GauGau
Logged

GGallery

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 61
Re: Automatically resizing/deleting original images on upload..
« Reply #2 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)?
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Automatically resizing/deleting original images on upload..
« Reply #3 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.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=f0873409e7b0238c9b018100632837e3)
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.