SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question To open .psd (photoshop document) file in a popup window

    Hi All,

    Can anybody please tell me, how to open .psd( Photoshop Document ) file in a popup window in php, not in Photoshop software.
    I want .psd ( Photoshop Document ) file should be open in a popup window , not in Photoshop software.
    I have a link of .psd file in php that would be open in a popup window. And also, no dialog box should be open while opening .psd file in a popup window.

    Same case with opening .doc ( ms-word ) file in a popup window.

    Please reply soon.

    Very Urgent........................

    Thanks

    Harish Pathak

  2. #2
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    925
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    It's not possible, browsers cannot open Photoshop documents. Same with .doc but as far as I know IE could do that by embedding MS Word in the browser window if it's installed - however, I'm not sure if this works on current IE versions, even if it does I wouldn't rely on this feature to be available to most people.

    You could try using PHP to convert .psd to .jpg or .png with ImageMagick and displaying it in the browser. However, this will work only for .psd files saved with compatibility option.

    In other words - internet browser is not Photoshop and cannot open Photoshop files. You would need to install a Photoshop plugin in your browser, however, I don't know if it even exists.

  3. #3
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,011
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by harishpathak View Post
    Hi All,

    Can anybody please tell me, how to open .psd( Photoshop Document ) file in a popup window in php, not in Photoshop software.
    I want .psd ( Photoshop Document ) file should be open in a popup window , not in Photoshop software.
    I have a link of .psd file in php that would be open in a popup window. And also, no dialog box should be open while opening .psd file in a popup window.

    Same case with opening .doc ( ms-word ) file in a popup window.

    Please reply soon.

    Very Urgent........................

    Thanks

    Harish Pathak
    Open the file in Photoshop. Click File > Save for web

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,048
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Lemon Juice View Post
    It's not possible, browsers cannot open Photoshop documents. Same with .doc but as far as I know IE could do that by embedding MS Word in the browser window if it's installed - however, I'm not sure if this works on current IE versions, even if it does I wouldn't rely on this feature to be available to most people.

    You could try using PHP to convert .psd to .jpg or .png with ImageMagick and displaying it in the browser. However, this will work only for .psd files saved with compatibility option.

    In other words - internet browser is not Photoshop and cannot open Photoshop files. You would need to install a Photoshop plugin in your browser, however, I don't know if it even exists.
    That isn't completely true considering google drive is able to display psd files in the browser. That said not a project/task I would take on myself.
    The only code I hate more than my own is everyone else's.

  5. #5
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    925
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Well, this is true - but given enough time and determination one could write a php script that will open just about any format in the browser.

  6. #6
    Non-Member
    Join Date
    Jun 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice post thanks

  7. #7
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Apparently you can use Imagick to process PSD files.

    PHP ref: http://www.php.net/manual/en/class.imagick.php
    Source: http://blog.jumlin.com/2010/01/openi...h-php-imagick/
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •