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..
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
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.
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
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
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on ImageMagick and EPS
Beginner
Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Comments: 6
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Get the debug output ( scripts.webmastersite.net/w...allery/manual/articles/165 ).
Beginner
Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Comments: 6
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,replacementclose,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,canemail,validatecats,validatecomments,validatelinks,validateedits,can
submitlinks,cansubmitcategories,cansubmitcomments,caneditownlinks,caneditowncategories,caneditowncomments,caneditownprofile,c
aneditalllinks,caneditallcategories,caneditallcomments,caneditallprofiles,candownloadfiles,canupload,canviewip,limitlinks,can
emailmembers,canusehtml,limitlinksdaily,canalias,cancopy,candeleteown,candeleteall,bytespermem,canviewpages,candofulledit,can
deletecategories,candeletecomments,candeleteowncategories,candeleteowncomments,candeletemembers,candeleteownmembers,canaliasc
ategories,caneditvotes,numaliases,canviewvotes,canhideownlinks,canhideowncategories,canhideowncomments,canhidealllinks,canhid
eallcategories,canhideallcomments,canratecomments,canpm,canim,canharddelete,limitpms,limitpmsdaily,canviewdeleted,cansubmitpo
lls,candeletepolls,candeleteownpolls,caneditpolls,caneditownpolls,attachperpost,attachperpm,canviewshouts,caneditshouts,caned
itownshouts,candeleteshouts,candeleteownshouts,cansubmitshouts,canpollvote,customtitle,canviewinvisible,namestyle,canpmimport
ant,canviewmodlog,isleader,cansubmitquotes,validatequotes,candeletequotes,candeleteownquotes,canreport,canusesearch,attachper
link,validateattachments,bulkpms,issupermod,caneditownquotes,caneditallquotes,canviewchat,caneditownevents,caneditallevents,c
andeleteownevents,candeleteevents,cansubmitevents,validateevents FROM wsngallery_membergroups WHERE id>0 ;
Performing query: SELECT
id,name,comments,time,usergroup,password,ip,totalhits,email,validated,template,language,totalbytes,images,lastattempt,avatarn
ame,allowemail,albumid,signature,failedattempts,allowuseremail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit,timezone,
links,rating,pmfolders,notifyofpms,acceptpms,cookieduration,banned,topics,posts,location,homepage,occupation,bio,aim,icq,msn,
yahoo,inactive,timeonline,totalpms,buddies,ignored,isonline,acceptims,adminpermissions,referrer,groupreverttime,grouprevertto
,moderationpm,secondarygroups,linksperpage,commentsperpage,shouts,customtitle,shoutban,topicbans,forumbans,visibility,birthda
te,lastsession,interests,posteditor,forumaccess,pmpopup,pmnotify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,orderalbu
ms,lastguestnote,autosubscribe,notifymethod,showavatars,showsigs,warninglevel,chatcolor FROM wsngallery_members WHERE id=1
AND validated=1 ;
Performing query: SELECT
id,name,parent,validated,description,time,parentnames,parentids,numlinks,hide,lastlinktime,custom,lastedit,moderators,headeri
nfo,related,numsub,isalbum,type,permissions,subscribers,subscriber,mixtypes,orderlinks,totalcomments,filetitle,filename,ulsea
rchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols,dmozpath,sponsorlinks,views,customwrap,deleted,reqlinks,reqcoms,req
linksdelay,priority,levelsdeep,lastposterid,lastpostername,lastcommenttime,lastthreadid,lastthreadtitle,linkshere,unvalidated
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,sumofvotes,email,time,hits,numcomments,hide,ownerid,voterips,voterids,laste
dit,type,notify,downloads,pendingedit,imedit,suspect,funds,suspended,alias,expire,ip,inalbum,typeorder,hitsoutips,lastcomment
,related,inhidden,viewers,threadviewers,hitsouttemp,hitsintemp,origtype,importance,parentids,timesemailed,threadclosed,thread
posters,lastposterid,lastpostername,ownername,deleted,deletionreason,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,email,validated,template,language,totalbytes,images,lastattempt,avatarn
ame,allowemail,albumid,signature,failedattempts,allowuseremail,stylesheet,funds,totalhitsin,notifyoflinks,lastvisit,timezone,
links,rating,pmfolders,notifyofpms,acceptpms,cookieduration,banned,topics,posts,location,homepage,occupation,bio,aim,icq,msn,
yahoo,inactive,timeonline,totalpms,buddies,ignored,isonline,acceptims,adminpermissions,referrer,groupreverttime,grouprevertto
,moderationpm,secondarygroups,linksperpage,commentsperpage,shouts,customtitle,shoutban,topicbans,forumbans,visibility,birthda
te,lastsession,interests,posteditor,forumaccess,pmpopup,pmnotify,modnotes,guestnotes,salt,lastmodnote,newpms,imflag,orderalbu
ms,lastguestnote,autosubscribe,notifymethod,showavatars,showsigs,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','','','','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 ???
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The page you posted doesn't appear related, and you're using the basic edition, which isn't supported.
Beginner
Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Comments: 6
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Beginner
Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Comments: 6
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
Beginner
Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Comments: 6
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