.eps uploaded but how can I get the image to show up?
-
I am a photographer and illustrator setting up a site to sell my work as digital downloads. Photos are easy but I’m struggling with the .eps files. I’ve figured out how to get them to upload to the media area, but all i get is a grey box. How can I get an image to actually show, so that potential purchasers can see it?
I know there are plenty of WordPress sites that sell .eps files, so there must be a solution, but I’ve been trawling the web for several days, and haven’t found anything that works yet.
If it matters, I am using Virtue Premium Theme and Photo Seller plugin.
Thanks
-
Web browsers can’t display EPS files as images. Never have been able to, and most likely never will. If you look at any site that links EPS files for downloads the actual image that’s displayed won’t be an EPS.
The way that others do this is to upload the EPS file and an image file as a preview, either JPEG, GIF, or PNG. Then the EPS file is linked to the image file so it can be downloaded.
Thank you, catacaustic. Do you have any suggestions as to how i can link to a .jpg preview? Is there a way to zip them and show a preview? I would be happy for the customer to be able to download a zipped file with both the .jpg and .eps combined.
Just upload both files, copy the file URL from the EPS file, and when you insert the JPG file, set a custom link URL to the URL from the EPS file.
Thanks catacustic – I wish it were as simple as you said.
I can custom link the URL in certain areas of my site, but not in the bit I need to. I am creating a Gallery, using the Photo Seller plugin, and the URL is greyed out and not editable in any way.
I think what I really need is to code the Add From Server plugin to create the custom link at the point of upload, so that when I insert the image into a Gallery, it already has the custom link attached. So I upload image.jpg and image.eps at the same time, and the plugin instructs the jpg file to attach the link of the eps file before it even gets to my media area.
Maybe I am missing something really obvious, (and easy)? I can’t think I’m the only person who wants to be able to do this, as there are thousands of vector artists selling their work online.
I’m a complete WordPress/Web building novice, and it’s a steep learning curve, so I hope someone can assist because I’m out of my depth!
Thanks
As that’s a commercial plugin, you’ll have to ask the authors/vendors for assistance with this. It may be able to do what you need it too, and if not they might be able to make some modifications that will allow it.
The best advice might be that there’s always other systems out there that can do what that plugin does. I know that pretty much all of the good e-commerce systems that are on here go, they can all sell digital downloads, so you’d only have to set up your EPS (of whatever it is really) file as the download, and set a JPEG image file for the preview, and it will work just as you want it too. But… having invested in that plugin you may want to stick with that.
Thanks catacaustic, I have asked, (two days ago on their forum), but I haven’t had a response yet, despite their assurance that support issues are normally responded to within 24 hours. Their forum is clear that they don’t offer support outside the boundaries of what the plugin is supposed to do but I am hoping that the delay is because they are trying to find me a solution, rather than because they are simply ignoring my thread!
The plugin does, however, come with a 30 day money back guarantee, so if you have any other suggestions of alternative plugins, I’d be really glad to hear about it, as I’m only 10 days in ??
The appeal of the Photo Seller plugin was that it was specifically designed for the purpose, and offers resized options, the ability to overlay a watermark, etc. I’m sure there are other viable options but, as this is all new to me, suggestions from someone with experience would be very much appreciated.
Thanks very much
Just upload both files, copy the file URL from the EPS file, and when you insert the JPG file, set a custom link URL to the URL from the EPS file.
Sorry, I found this earlier, but I’ve been going round and round in circles and can’t find where I can change this anywhere now.
I’m not getting very far ??
Catacuastic, could you please point me in the right direction for changing the custom URL.
Thanks very much
@rixie
I Was looking for the same thing and digging around to program this in for myself in PHP because I wrote a plugin to manage our studio stock photography, scans in and creates the resource on another drive on our server.Wordpres is written in PHP.
PHP does not handle ai, eps or svg natively. It is not designed to.
I realise that our Adobe desktop apps have had $$$$ of dollars spent on developing them and are meant for an entirely different purpose entirely no more than illustrator cannot server a web page to the public no more than a website create a layered vector illustration.
Jpg’s, gifs, pngs are essentially flat and easy to read which is why PHP had a better time of developing libraries for those.
These plugins, libraries have either been paid for by someone else or developed in peoples spare time. So if you got the plugin for free and does 99% the work for you well I wouldn’t beat up the people too hard who have to work with the tools they’ve been given, even if it doesn’t fit your dream, especilly if you didn’t have to pay for these tools in the first place.
@andi
Actually, the Photo Seller plugin people came up with a solution for me, which displays the .jpg image but allows me to attach the .eps as a purchase option. Thanks to the guys who worked this out for me, as it was a lifesaver! It isn’t a free plugin but the support and understanding has been excellent, and well worth the money I paid.@rixie
Well done those guys. Glad you got it sorted.Yes – they didn’t have to find me a solution, as the plugin was designed for ‘photo’ selling but, I guess, adding extra features attracts a larger market, and they certainly did everything they could to oblige.
Hi there,
I found a solution.
You have to install ImageMagic on the server.I am using Ubuntu/Debain 14.04 LTS
You will have to ask the host to add the package for you:
https://php.net/manual/en/imagick.setup.phpNow using these instructions I have managed to code in a way to do create the thumbnail but I am having trouble attaching the meta data for it, becuase you have to assign the GUID as the eps and the jpg as the thumbnails…
https://php.net/manual/en/imagick.setimageformat.php
During the scan directory phase using a rcursive scan I create the post.
After creating the post with a type called resources I then chack by file type/mime type or extension.Here is the bit that creates a jpeg from an ai file.
Where it says .ai you can change to .epsIts no where near finished yet and needs a lot of work and testing but it will give your dv team a head start hopefully.
// Get the path to the upload directory. $wp_upload_dir = wp_upload_dir(); // $filename should be the path to a file in the upload directory. $filename = '/some/path/to/your/image.ai'; /// $wp_upload_dir['basedir'] . '/' . $val->filename; /// $val->virtualPathname; /// $val->filepathname; /// /*$filedims = getimagesize($filename); $imagick = new Imagick(); $imagick->newImage($filedims[0], $filedims[1], "white"); $imagick->compositeimage($filename, Imagick::COMPOSITE_OVER, 0, 0); $imagick->setImageFormat("jpg"); $filename = $imagick->writeImage($filename);*/ // read page 1 $im = new imagick( $filename ); // convert to jpg $im->setImageColorspace(255); $im->setCompression(Imagick::COMPRESSION_JPEG); $im->setCompressionQuality(60); $im->setImageFormat('jpeg'); //resize $im->resizeImage(1024, 768, imagick::FILTER_LANCZOS, 1); //write image on server $im->writeImage(str_replace('.ai','.jpg', $val->filepathname)); $im->clear(); $im->destroy(); $parent_post_id = $key; // Construct the attachment array $attachment = array( 'post_mime_type' => str_replace('; charset=binary','',$val->mimeType),// $filetype, // 'guid' => str_replace('.ai','.jpg', substr($val->virtualShortPathName,1,strlen($val->virtualShortPathName))), ///$wp_upload_dir['url'] . '/' . basename( $filename ), ///$val->virtualPath, /// $val->filepathname, /// 'post_parent' => $parent_post_id, 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $filename ) ), 'post_name' => strtolower(str_replace(' ', '-', $val->filename)), 'post_content' => '', 'post_date' => $dateNow->format('Y-m-d H:i:s'), 'post_date_gmt' => $dateNow->format('Y-m-d H:i:s'), 'post_status' => 'inherit' ); // var_dump($attachment); ///$attachment = apply_filters('our-resources-import_details', $attachment, $val->filepath, $parent_post_id, $dateNow->format('Y-m-d H:i:s')); // Save the attachement data $attach_id = wp_insert_attachment($attachment, $val->virtualShortPathName/* strtolower(str_replace(' ', '-', $val->filename))*/, $parent_post_id); if ( !is_wp_error($attach_id) ) { $attach_data = wp_generate_attachment_metadata( $attach_id, $filename ); // var_dump($attach_data); wp_update_attachment_metadata( $attach_id, $attach_data ); add_post_meta($parent_post_id, '_thumbnail_id', $attach_id, true); }
Thanks
Andi
- The topic ‘.eps uploaded but how can I get the image to show up?’ is closed to new replies.