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: PSD files  (Read 4734 times)

0 Members and 1 Guest are viewing this topic.

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
PSD files
« on: April 17, 2012, 12:08:27 pm »

Hello, I am using the gallery and Imagemagick, I can upload PSD files, but on Firefox nothing shows. I am using MAC, and if I open the gallery with Safari, all is OK. Can you tell me if there is a way I can view/download PSD files with Firefox or another Browser? Why I need PSD? Because I use the gallery as a image database for all the files on my computer, I am a web-designer and I make a lot of PSD files. If these kind of files are not shown, my effort is useless.

Thanks!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: PSD files
« Reply #1 on: April 17, 2012, 12:13:27 pm »

What exactly have you already done to upload/show PSD files to your gallery?
Logged

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: PSD files
« Reply #2 on: April 17, 2012, 12:25:09 pm »

I use ImageMagick, as "Method for resizing images " in configuration, also I have ImageMagick on my linux server where I keep the gallery. Second I add PSD in: Allowed image types and installed Filetypes editor as plugin, I follow some guides in the forum. That is all. Also I can say that I can upload EPS, CDR and AI files and thumbnails for that files are working!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: PSD files
« Reply #3 on: April 17, 2012, 01:33:58 pm »

I follow some guides in the forum
That's probably the most important part (hopefully you'll find/post the link(s) to that thread(s)). Which file types are the thumbnail files for each PSD, EPS and CDR? Are they identical as the source file or does Coppermine create e.g. JPG or PNG files?
Logged

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: PSD files
« Reply #4 on: April 17, 2012, 01:54:31 pm »

Maybe I was not clear. The thumbnails are working in Safari, but not in Firefox or other browser. Do I need a plugin for Firefox? Does anyone manage to do the PSD thumbnails and image? In Firefox, the thumbnail is the title of the file ex: bg.psd with the link to the file, and the actual image is a | line.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: PSD files
« Reply #5 on: April 17, 2012, 02:51:01 pm »

So the generated thumbnail files seems to be no "common" (web) image file type.

Do I need a plugin for Firefox?
You should better ask the Firefox team how to open PSD files with their software. What we can do is modifying the Coppermine code to create PNG or JPG thumbnail files, which should be compatible with every browser. This thread should help you to modify your gallery accordingly.
Logged

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: PSD files
« Reply #6 on: April 17, 2012, 03:28:59 pm »

Not only the thumbnail is the problem, also the image file.
You can see here the way is shows in Safari: http://imageshack.us/photo/my-images/820/screenshot20120417at162.png/
And here in FireFox http://imageshack.us/photo/my-images/696/screenshot20120417at162.png/

Hope I was clear enough...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: PSD files
« Reply #7 on: April 17, 2012, 03:47:25 pm »

This thread should help you to modify your gallery accordingly.

Please read that thread. It solves the issue for thumbnails and intermediate-sized pictures.
Logged

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: PSD files
« Reply #8 on: April 17, 2012, 03:57:45 pm »

I read it and tryit but no results.

In include/picmgmt.inc.php I have no code like: $localpath = $pic_row['filepath'] . $pic_prefix[$mode] . $pic_row['filename'];

I did the prevous modifications by adding the pdf:
    $normal = str_replace('.psd', '.jpg', $normal);
    $thumb = str_replace('.psd', '.jpg', $thumb);
But there is no output!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: PSD files
« Reply #9 on: April 17, 2012, 04:05:43 pm »

Try to upload a new file after you applied those modifications.
Logged

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: PSD files
« Reply #10 on: April 18, 2012, 08:21:22 am »

It does not work, it says: Unable to create thumbnail or reduced size image.
Logged

minute

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: PSD files
« Reply #11 on: April 18, 2012, 08:53:00 am »

Also I notice that not all the psd files are uploading, some of them are returning the error: Error executing ImageMagick - Return value: 1. I have to check the files to see what is the problem...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: PSD files
« Reply #12 on: April 18, 2012, 09:20:23 am »

Unable to create thumbnail or reduced size image

Please enable the debug mode. You'll get an extended error message. Please post that error message and also attach the mentioned file(s) to your next reply.
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.