WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


ImageMagick and EPS
cannot convert eps to jpg

Version: 2.3.5B
printPrint


ImageMagick and EPS
Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Posts: 6
Posted 07/10/06 - 05:56 AM:
quote post
#1
Imagemagick works fine for creating thumbnails in the gallery. but i have to convert also eps to jpg´s. it works fine from the command line but it still don´t works in the gallery.

ghostscript is also installed

for testpurposes i´ve installed it on: Windows XP Home.

i don´t get any errormessage. also when i start to convert in a standalone php script it works fine..

Has anyone an idea?

Thanks for help in advance

Werner
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/10/06 - 04:57 PM:
quote post
#2
Get the debug output ( http://scripts.webmastersite.net/wsngallery/manua... ).
Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Posts: 6
Posted 07/12/06 - 10:43 AM:
quote post
#3
hy Paul, it seems that the jpg will not be generated...only the eps appears in the donwnload section.

Her is the Debug after attaching the eps

Performing query: SELECT id FROM wsngallery_categories WHERE validated=1 AND hide=0 AND isalbum=0 ORDER BY id DESC LIMIT 0,1;


Number of rows is 1 for Resource id #19

Performing query: SELECT name,value FROM wsngallery_switches WHERE id>0 ;


Number of rows is 64 for Resource id #36

Performing query: SELECT id,type,original,replacement,description,originalclose,repla cementclose,sortorder FROM

wsngallery_markup WHERE type='wsncode' ORDER BY sortorder ;


Number of rows is 22 for Resource id #38

Performing query: SELECT original,replacement,description,id,sortorder FROM wsngallery_markup WHERE type='smilie' ORDER BY

sortorder ;


Number of rows is 14 for Resource id #39

Performing query: SELECT

id,title,caneditown,caneditall,canvote,isadmin,canpost,can email,validatecats,validatecomments,validatelinks,validateed its,can

submitlinks,cansubmitcategories,cansubmitcomments,canedito wnlinks,caneditowncategories,caneditowncomments,caneditownpr ofile,c

aneditalllinks,caneditallcategories,caneditallcomments,can editallprofiles,candownloadfiles,canupload,canviewip,limitli nks,can

emailmembers,canusehtml,limitlinksdaily,canalias,cancopy,c andeleteown,candeleteall,bytespermem,canviewpages,candofulle dit,can

deletecategories,candeletecomments,candeleteowncategories, candeleteowncomments,candeletemembers,candeleteownmembers,ca naliasc

ategories,caneditvotes,numaliases,canviewvotes,canhideownl inks,canhideowncategories,canhideowncomments,canhidealllinks ,canhid

eallcategories,canhideallcomments,canratecomments,canpm,ca nim,canharddelete,limitpms,limitpmsdaily,canviewdeleted,cans ubmitpo

lls,candeletepolls,candeleteownpolls,caneditpolls,canedito wnpolls,attachperpost,attachperpm,canviewshouts,caneditshout s,caned

itownshouts,candeleteshouts,candeleteownshouts,cansubmitsh outs,canpollvote,customtitle,canviewinvisible,namestyle,canp mimport

ant,canviewmodlog,isleader,cansubmitquotes,validatequotes, candeletequotes,candeleteownquotes,canreport,canusesearch,at tachper

link,validateattachments,bulkpms,issupermod,caneditownquot es,caneditallquotes,canviewchat,caneditownevents,caneditalle vents,c

andeleteownevents,candeleteevents,cansubmitevents,validate events FROM wsngallery_membergroups WHERE id>0 ;


Performing query: SELECT

id,name,comments,time,usergroup,password,ip,totalhits,emai l,validated,template,language,totalbytes,images,lastattempt, avatarn

ame,allowemail,albumid,signature,failedattempts,allowusere mail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit,ti mezone,

links,rating,pmfolders,notifyofpms,acceptpms,cookieduratio n,banned,topics,posts,location,homepage,occupation,bio,aim,i cq,msn,

yahoo,inactive,timeonline,totalpms,buddies,ignored,isonlin e,acceptims,adminpermissions,referrer,groupreverttime,groupr evertto

,moderationpm,secondarygroups,linksperpage,commentsperpage ,shouts,customtitle,shoutban,topicbans,forumbans,visibility, birthda

te,lastsession,interests,posteditor,forumaccess,pmpopup,pm notify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,or deralbu

ms,lastguestnote,autosubscribe,notifymethod,showavatars,sh owsigs,warninglevel,chatcolor FROM wsngallery_members WHERE id=1

AND validated=1 ;


Performing query: SELECT

id,name,parent,validated,description,time,parentnames,pare ntids,numlinks,hide,lastlinktime,custom,lastedit,moderators, headeri

nfo,related,numsub,isalbum,type,permissions,subscribers,su bscriber,mixtypes,orderlinks,totalcomments,filetitle,filenam e,ulsea

rchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols, dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqc oms,req

linksdelay,priority,levelsdeep,lastposterid,lastpostername ,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unva lidated

links,unvalidatedcomments,actaslink,countposts,subcatshtml FROM wsngallery_categories WHERE validated=1 AND deleted=0 AND

hide=0 ;


Number of rows is 4 for Resource id #46

Performing query: LOCK TABLES wsngallery_email WRITE, wsngallery_links WRITE, wsngallery_categories WRITE, wsngallery_members

WRITE;


Performing query: SELECT id,`to`,subject,message,headers,replacement,mime FROM wsngallery_email WHERE timesent=0 ORDER BY id

ASC LIMIT 0,10;


Number of rows is 0 for Resource id #47

Performing query: UNLOCK TABLES;


Performing query: SELECT

id,title,description,rating,votes,validated,catid,sumofvot es,email,time,hits,numcomments,hide,ownerid,voterips,voterid s,laste

dit,type,notify,downloads,pendingedit,imedit,suspect,funds ,suspended,alias,expire,ip,inalbum,typeorder,hitsoutips,last comment

,related,inhidden,viewers,threadviewers,hitsouttemp,hitsin temp,origtype,importance,parentids,timesemailed,threadclosed ,thread

posters,lastposterid,lastpostername,ownername,deleted,dele tionreason,movedto,deletedby,timevalidated,filefield,savedby ,file1a

ttach,file2attach FROM wsngallery_links WHERE id=27 LIMIT 0,1;


Performing query: SELECT COUNT(id) FROM wsngallery_attachments WHERE type='link' AND objectid=27 ;


Performing query: SELECT

id,name,comments,time,usergroup,password,ip,totalhits,emai l,validated,template,language,totalbytes,images,lastattempt, avatarn

ame,allowemail,albumid,signature,failedattempts,allowusere mail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit,ti mezone,

links,rating,pmfolders,notifyofpms,acceptpms,cookieduratio n,banned,topics,posts,location,homepage,occupation,bio,aim,i cq,msn,

yahoo,inactive,timeonline,totalpms,buddies,ignored,isonlin e,acceptims,adminpermissions,referrer,groupreverttime,groupr evertto

,moderationpm,secondarygroups,linksperpage,commentsperpage ,shouts,customtitle,shoutban,topicbans,forumbans,visibility, birthda

te,lastsession,interests,posteditor,forumaccess,pmpopup,pm notify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,or deralbu

ms,lastguestnote,autosubscribe,notifymethod,showavatars,sh owsigs,warninglevel,chatcolor FROM wsngallery_members WHERE id=1 ;


Number of rows is 1 for Resource id #54

Performing query: UPDATE wsngallery_members SET totalbytes='14592117' WHERE id=1;


Performing query: INSERT INTO

wsngallery_attachments(id,type,objectid,filename,filetitle ,filesize,width,height,memberid,time,deleted,field,downloads ,valida

ted) VALUES('','link','27','david.eps ','david.eps','2695292','0',' ;0','1','1152725765','',' 9;,'','1');


Performing query: UPDATE wsngallery_links SET filefield='1' WHERE id=27;


Performing query: SELECT

id,type,objectid,filename,filetitle,filesize,width,height, memberid,time,deleted,field,downloads,validated FROM

wsngallery_attachments WHERE type='link' AND objectid=27 ORDER BY time ASC ;


Number of rows is 1 for Resource id #56

Performing query: SELECT

id,type,objectid,filename,filetitle,filesize,width,height, memberid,time,deleted,field,downloads,validated FROM

wsngallery_attachments WHERE type='link' AND objectid='27' ORDER BY time ASC LIMIT 0,1;


Number of rows is 1 for Resource id #57

Performing query: SELECT value FROM wsngallery_switches WHERE name='ims' ;


Options | Members | Search | New Images | Logout

Gallery > Jahr 2006 > > Edit Image
Delete Image
Reason for deletion:
Hard-delete? (This will be non-recoverable.)


Reject this image

Category: Jahr 2006- Sujets- Werbung- frisch serviert
Alias Categories:
Select the secondary categories in which you want this image to appear. Jahr 2006- Sujets- Werbung- frisch serviert
Title:
Description:
characters remaining
Attach Files:
Allowed file types: jpg,jpeg,png,gif,bmp,eps,doc,pdf
Current Attachments:
david.eps (2632 KB)

E-mail:

Image Type: regular
Unique Views:
Unique views during last 30 days:
Owner ID#:
Current owner is wl.
Total Views:
Submitter IP:
Days left to expiration:
If applicable, the days left until the image expires. Set to 0 to cancel expiration, use decimals for partial days.
Related Images:
Type image id numbers separated by commas.
Allow further comments? yes (open thread)no (closed thread)
Change Image Submission Time:
Currently 7/7/2006. To change, type a new date and time in a common format such as August 31, 2004 12:15 PM.
file2attach
Hide Image? yesno


Category ListJahr 2006- Sujets- Werbung- frisch serviert

Admin Control Panel | Moderator Control Panel

20 total queries
This page was created in 1.45 seconds
Powered by WSN Gallery 2.3.5B

© 2005 WebmasterSite.net



Any idea ???

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/14/06 - 02:05 PM:
quote post
#4
The page you posted doesn't appear related, and you're using the basic edition, which isn't supported.
Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Posts: 6
Posted 08/16/06 - 06:17 AM:
quote post
#5
Hi Paul again,

now i have purchased WSN Gallery and i´ve still the same problem!

When i upload an eps-file the thumbnail will not be generated when i do it in a testscript like:

<?php

require 'start.php'

$make_magick = system("convert attachments//attachments//test//david.eps attachments//attachments//test/testdavid.jpg");


?>


i got the following output:

%%[ ProductName: AFPL Ghostscript ]%% %%[Page: 1]%% %%[LastPage]%%

and the jpg file will be generated!

Any idea ?

Which debug screen do you need ?

Best regards Werner
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 08/19/06 - 05:04 PM:
quote post
#6
In your test script you would need an absolute file path and shouldn't double the forward slashes.You say it works doing it directly from a shell without involving PHP? If from a shell
convert /path/to/file.eps /path/to/file.jpg
works, then
<?php system("convert /path/to/file.eps /path/to/file.jpg"); ?>
should necessarily work as well.

I've never seen an eps file, so it would be useful if you could send me one to test.
Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Posts: 6
Posted 08/20/06 - 03:35 AM:
quote post
#7
Hello Paul, also with your script and with absolute path´s it´s working fine.

but when i upload the file within wsngallery it won´t show the thumbnail and it will not generate the jpg file.



Is there a posibillity to link the uploaded file to a jpg file which is generated "by hand" ? So it would be possible to make a wokrarround and fix the problem later on.



Is it possible to send the attachment per mail becaus also when i Zip itit´s bigger then 1 MB (it´s 1.05MB



Best regards Werner
Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Posts: 6
Posted 08/21/06 - 06:45 AM:
quote post
#8
Hi Paul,

i´ve fixed my problem! i only have to make an update on the column filename in the database and so i can use the batchjob generated thumbs also for the eps file! Thanks for your help!

Best regards

Werner
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.