Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: normal pics only created when original is bigger!!  (Read 3488 times)

0 Members and 1 Guest are viewing this topic.

astrostar59

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: normal pics only created when original is bigger!!
« on: February 21, 2008, 02:21:39 pm »

I have a weird thing happening. If I upload a pic less than my 300px limit, it loads to the server as the original name.
If it is bigger than 300px before upload, coppermine downsizes the original ok, but calls this downsized one
normal_!! What gives. I can't use the gallery if it doesn't create the downsized pic the same name as the other
smaller one, or my pics will be all over the place. I have the config set to create intermediate pics.

I thought cpm created a normal (copy) file everytime?? regardless of downsize or not.

I tried GD 1x and 2x but the same happens. My service provider is on php 5+
Everthing else wrks ok, thumbnails, gallery views ect.

Please help me!!
« Last Edit: February 22, 2008, 07:42:49 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: normal pics only created when original is bigger!!
« Reply #1 on: February 21, 2008, 02:46:42 pm »

That's expected. It would be a waste of disk space to do otherwise.
Logged

astrostar59

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: normal pics only created when original is bigger!!
« Reply #2 on: February 21, 2008, 02:55:19 pm »

Yes , it saves space, but cpm is not using the downsized pics in the gallery. If I look at the database entries
in the picture table, it is using the same (big) image. The normal_ pic is the downsized one but it is not using it??
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: normal pics only created when original is bigger!!
« Reply #3 on: February 21, 2008, 03:11:13 pm »

A database entry normal_picture.jpg is redundant. If creating intermediate images is enabled and the orig image > than your config setting setting for normal images, then a normal image exists. Same for thumbs. That's why you only will find the filename of the fullsized in the db and not normal and thumb.
And this doesn't say anything about coppermine using the normal images or not.

astrostar59

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: normal pics only created when original is bigger!!
« Reply #4 on: February 21, 2008, 04:32:04 pm »

Thanks for the reply. Is there a way then, that I can get CP to make a copy (normal_) image for all uploaded, regardless of size. I wanted
to use CP in my website but if the naming convention differs depending on size of image then I can't get it to link.
Logged

astrostar59

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: normal pics only created when original is bigger!!
« Reply #5 on: February 21, 2008, 05:06:22 pm »

I hav found that you can get admin tools utility in CP to delete the full sized images. This renames the Normal_ downsized pic and deletes the original bigger pic. This then results in what I want. Is there a way to set CP to do this automatically?

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: normal pics only created when original is bigger!!
« Reply #6 on: February 21, 2008, 05:28:22 pm »

That's nonsense. If you want to accomplish this, just set the max. allowed resolution to the same value as the size for intermediates, then set creation of intermediates to "no" and finally enable "Auto resize images that are larger than max width or height" for everyone. This will give you the expected result.
Logged

astrostar59

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: normal pics only created when original is bigger!!
« Reply #7 on: February 21, 2008, 06:05:09 pm »

Hey, thanks dude I missed the lower setting - max size for downloadable pics. It works a treat now!!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.