Monday, March 29, 2010

PSE 4 reconnect missing files

PSE 4 - I turned on my computer yesterday (Pentium 4, windows XP, 189 gb). and most of my 2500 photos were flagged as missing files. I was able to reconnect some of them, but often they were mismatched in the reconnect window with another photo that had the wrong label on it. This happened at the same time I had an error code c0000005 Address lf8dld4. I still have 165 gb memory left. What went wrong and how do I fix it? I tried to resolve the error code by using the recommendations given in a different forum, but could not locate the path or any of the files recommended in the fix.
PSE 4 reconnect missing files
Are you using the Photoshop SDK?



Aandi Inston
PSE 4 reconnect missing files
I am using Adobe Photoshop Elements 4. I do not know what SDK stands for. I am one of two users on a partitioned hard drive if that makes a difference. The day before the problem I tagged a large number of pictures without any apparent problem.

In that case you are certainly in the wrong forum. This is the forum

for discussing the Photoshop SDK (which is something used by

programmers). I recommend finding the Photoshop Elements forum. Each

forum has a different group of experts who might help. Be sure to read

the forum description before posting.



Good luck,



Aandi Inston

Getting a SVG file out of Photoshop

Ok. You might think I'm crazy on this. I'm working on a flash application that reads in graphical elements based on SVG. That works great for InDesign and Illustrator files because both can save out as SVG format. However, I'm finding that most of the files that I need to import and use in this application have Photoshop as the starting point or a PSD file. I'd like to be able to use these PSD files in addition to the InDesign/Illustrator ones without having to recreate by hand. So, does anyone know of a way to get a PSD file into the SVG format. Looking at all PSD filetype info, it seems like most of the same information is recorded, so I'm sure it would be doable. I haven't been able to locate anyone who knows the answer.



Thanks for any help or insight you can offer on this!
Getting a SVG file out of Photoshop
SVG is a vector format. Unless your PSD is outputting vectors, I don't see how this is going to work.
Getting a SVG file out of Photoshop
It sounds as if this Flash application is designed to only support

vector; it would be useful if (as seems to be the case) you are

authoring it, to make it accept at least one bitmap format (perhaps

JPEG) too.



Aandi Inston

Photoshop Plug-In directory localized...

Hello,



I want to build an installer that automatically finds the right destination directory for a plug-in. The only problem I have is that Adobe uses localized names for the ''Plug-Ins'' directory as well as its subdirectories (esp. ''Import/Export'' in my case).



Is there some official documentation on what these names are for the different languages (in versions CS2 and later). I couldn't find such a document online or in the SDK, but this surely must be available somewhere.



Thanks.
Photoshop Plug-In directory localized...
Hi Bernd,



I don't know any fool prove solution for this, nor a documentation for the plugin directoy names, but you can obtain some of the needed information from the registry. However if you do not know target version and/or language you can always put your plugin into photoshops root dir.

If you don't want this, you could implement a file/dir-browser that uses ps root path as starting point and let the user browse from there to the plugin dir. Another aproach would be to implement a file-searcher that searches for a plugin that allready came native with photoshop and returns the path to you.

See also: http://adobeforums.com/webx/.3bc4c525/0



Marc
Photoshop Plug-In directory localized...
Hi Marc,



thanks for your suggestion, but my problem really *starts* when I found the main Photoshop directory. I can find it no problem, but need the subdirectory as well. Putting plug-ins into the root of Photoshop is only a fallback option for me. And using the registry doesn't help as I need it to work on Macs too.



It's really hard to believe Adobe hasn't ever put out a technote listing those names. Not exactly good documentation practice. But if that's what it is I have to try to hunt down the names for the common languages at least.



Bernd

I absolutely agree with you one this one, it's simply a shame and sadly a common ''feature'' with some software products - I know at least two applications that change their root-directoy names or plugin-folders with every version change : (

I'm not sure of this, but didn't adobe even change the english name from ''plug-ins'' to ''plugins'' with some version change? I currently don't have an english version (or an old one) but somehow I have this in the back of my mind, but I could confuse this with a completely different software.

Anyway, to get you started, the german name is ''Zusatzmodule'' : )

Good luck with hunting down the other names, maybe you could post them here if you find them.

-Marc

One bit of lateral thinking: instead of trying to find out the plug-in

folder name, how about looking for the folder with the most things

that look like plug-ins?



Aandi Inston

Aandi, that sounds like a really different and interesting approach. I wonder if the default plug-ins shipped by Adobe are also localized in filename. But at least for my case of finding the ''Import/Export'' subfolder I should be on the safe side by looking for the TWAIN plugin. I would imagine that to be the same in all languages.

Bernd_Heller@adobeforums.com wrote:

%26gt; But at least for my case of finding the ''Import/Export'' subfolder I should be on the safe side by looking for the TWAIN plugin.



Or look for folders that contain files with the extensions that you're

interested in, e.g. *.8li, *.8ba.



-X

%26gt; Or look for folders that contain files with the extensions that you're

interested in, e.g. *.8li, *.8ba.



That will again only work on windows, because on Macs the file extension is always .plugin

Bernd_Heller@adobeforums.com wrote:

%26gt;

%26gt; That will again only work on windows, because on Macs the file extension is always .plugin



Yikes! Do the different plugin types have different Mac file types assigned to

them or is there no way to distinguish one plugin file type from another other

than by folder?



-X

xbytor@adobeforums.com wrote:

%26gt; Bernd_Heller@adobeforums.com wrote:

%26gt;%26gt; That will again only work on windows, because on Macs the file extension is always .plugin

%26gt;

%26gt; Yikes! Do the different plugin types have different Mac file types assigned to

%26gt; them or is there no way to distinguish one plugin file type from another other

%26gt; than by folder?



It does appear that you can determine the plugin type on the Mac by looking in

the *.plugin/Contents/Info.plist file. Not the most elegant solution, but it

should work.



-X

One other thought: the idea of an automatic installer which makes this

decision alarms me. It's very useful to pick a default before

presenting the user with a choice, but to just go ahead is surely

wrong.



I have seen plug-in installers that do this. The problem is that they

do not accommodate the case where you have more than one copy/version

of Photoshop installed. Where the installation is complex (more than

copying a file) it can make it difficult or impossible to use the

plug-in with those other installations.



How about

* Find the default Photoshop folder

* Put up a folder chooser window inviting people to choose their

plug-ins folder

* Normally this is just one folder within this Photoshop folder, but

people with more than one installation can choose

* If you can't find Photoshop, skip straight in at the prompt (with a

suitable message, as not everyone really understands system

requirements)



Aandi Inston

xbytor@adobeforums.com wrote:

%26gt; It does appear that you can determine the plugin type on the Mac by looking in

%26gt; the *.plugin/Contents/Info.plist file. Not the most elegant solution, but it

%26gt; should work.



Thanks xbytor, I think that should work, and I may do just that. But it's really way more effort than I wanted to put into something that should be very very simple indeed.



Aandi:

I see your point about too much automatism, but I always loathed installers incapable of finding photoshop plugin folders on their own. If there is one photoshop installed only, the installer has to ''just work''. And should there be more than one possible location, the user certainly should not have to delve into the depths of the photoshop folders. He should just have to say ''photoshop a'' or ''photoshop b'', and then it's back to my original problem of finding my way around inside the photoshop installation once I know where it starts.



Bernd

some ideas...

in photoshop editing

i really hope they can modulize layers functions more

now they got layers group, comps..

but i want ''layer library'' just like in flash

so i can not only change positions and visibility



sync the change to children copies

while every time i edit change of mother library item

i think they can work on the smart object of this idea



and more

there should be ''style sheet''

for example

making namecards

and with four people namecard in layout

i would like to update text data

while giving them four different font style



maybe they already has it in illustrator

i havent use it

i dont know

but i can see in one day

vector and pixel should be in one pack editing enviroment



and they are putting software online

there should be modules i can arrange them into a online workspace!

i thinking about making gimp a gaggets like stuff

what do you think?

ADM Color Managed Preview?

I am writing a filter plug-in, which uses ADM for its UI. There appear to be a couple different ways to implement an image preview in the dialog. My question: What is the best way to implement an ADM preview, particularly where color-management is critical. Thanks.
ADM Color Managed Preview?
Hi Grit.



A brief overview of how to implement an image preview with ADM (at least, the way I do it). The documentation terminology for this is a ''preview proxy.''



- In your dialog resource, include an ''ADM User Type'' as a placeholder for your preview proxy.

- When you initialise the dialog, get the local rect for the proxy and set up a PSPixelMap with the memory required to hold the pixel data.

- The PSPixelMap holds info like the bounds rect for the proxy, the memory address of the pixel data, the image mode (RGB, Lab, etc.) of the data and the structure of your pixel data (i.e. rowBytes, colBytes and planeBytes, which describe how the pixel data is ordered in terms of rows, columns and colour channels).

- For the proxy dialog item, call sADMItem-%26gt;SetDrawProc to set the DrawProc callback for your proxy.

- In the callback, just use sPSUIHooks-%26gt;displayPixels to actually display whatever's in the PSPixelMap in your dialog window (use sADMDrawer-%26gt;GetPortRef to get the context for this call).

- To actually update your preview, just invalidate the proxy item (e.g. with sADMItem-%26gt;Invalidate or sADMItem-%26gt;Update or whatever).



Now, to load new PSPixelMap data to be displayed (e.g. when the user changes a parameter value in your UI), use the Channel Ports callbacks. (Channel Ports are *the* way to go for getting image data to and from Photoshop.)

- You will probably want to use sPSChannelPorts-%26gt;ReadScaledPixels to fill the PSPixelMap with image data from whatever colour channels you have set up.

- The data structures you'll need to do this are PSScaling (which determines how the image data is scaled, if you're working with scaled views) and PixelMemoryDesc, which tells Photoshop how you want your pixel data arranged. (e.g. You can alter the bit offset between successive calls to sPSChannelPorts-%26gt;ReadScaledPixels in order to read all your colour channels into the one buffer in the correctly interleaved manner.)

- Also, depending on what colour spaces and image depths you're using and allowing, you may need to use sPSColorSpace functions to convert between colour spaces and bit depths.



Well, that was pretty dense. Hope you figure it out OK.



-- Matthew

Is an Xcode Project for FrameSelect...

The CS3 SDK doesn't include an Xcode project for FrameSelect. Tried building it myself (on intel iMac), using ''Dissolve's'' debug-universal configuration as an example. Builds OK, but when I test it with CS2, CS2 crashes with no error report. (Coincidently, the ''About Plug-In'' for FrameSelect does work, and ''Dissolve'' runs just fine.)



Can Adobe provide an Xcode version of FrameSelect, so I can configure my build correctly?



Also, I read elsewhere that CS2 can not run as an executable under Xcode's debugger. Is that correct?
Is an Xcode Project for FrameSelect...
In a message dated 10/2/07 10:24:25 PM, member@adobeforums.com writes:



A new message was posted by TomRuark in



Adobe Photoshop Developers (SDK) --

Is an Xcode Project for FrameSelect automation plug-in available?



Make sure you have the update for CS2. There was a bug where it wouldn't load plug-ins if the package was a certain way.



Grit O'Brien 10-17-07:

Yes, my CS2 is up to date. I went on to try building TriggerFilters in Xcode, and it runs successfully for both CS2 and CS3; so I will be using that as my sample plug-in instead. Thanks.
  • mask making
  • iCCprofileData - any documentation on...

    Question 1) I assume that filterRecord-%26gt;displayPixels goes through any ICC profiles when displaying the image. Correct ?



    Question 2) I would like to develop my own 'displayPixels' and therefore would need to handle any ICC profile data. I see that there is the filterRecord-%26gt;iCCprofileData field but I don't see any documentation on what is contained within that field. Specifically, how do I generate the LUT's from the ICC information.
    iCCprofileData - any documentation on...
    See the icc34.pdf that came with your SDK. There are many books and the icc.org for more information.

    How can handle all events relate to...

    Dear all,



    I would like to handle all events relating to modify image such as: user draw on image or button up after modifying image....



    Could you help me.



    Thanks in advance,



    Hieu Nguyen.

    Photoshop contractor needed

    Hello



    I've written some Photoshop plugins before and my company, X-Rite, has need of some more, but we don't have the staffing to do it now. We're looking to hire a contractor to write a plugin for us.



    We'll also need a Windows tray application and Macintosh menu bar application, but we can supply that code if you need it.



    The plugin needs to be available under Windows XP and Vista and OS X 10.4 and 10.5. We need to support Photoshop CS2 and CS3.



    Send me your resume including specific Photoshop plugin experience and we can get started.



    Thank you.



    Paul Cezanne -- pcezanne@xrite.com -- X-Rite

    MacOs/Windows cross platform development

    Hello everyone!



    I need to write application that uses Photoshop CS3 for example to create new document, add new text layer to this document, add some text to this layer and save document. Text is read for example from DB. That's why I can't use JavaScript for Photoshop scripting.



    This is easy to accomplish using for example C#.NET and COM(to access Photoshop) at Windows platform. It becomes a bit more complicated with Objective C and AppleScript at MacOS platform. But the main problem is I need to write application that works at both platforms (MacOS and Windows). This means that neither C# and COM nor Objective C is suitable for this task.



    I've tried to write system like system with two components - some external to Photoshop application(could be platform specific - for example uses COM at Windows) that reads information from DB and Photoshop plug-in written in C++ that performs Photoshop - related tasks (e.g. creating new document, making new layer and so on).

    But I faced a problem - I don't know how to force Photoshop to call exact plug-in with some parameters(for example text to output) from external application. (Is it possible to do this?)



    So my question - Is it possible to create cross platform(MacOS and Windows) system for described above task? The main approach is to have one code base for two platforms.



    I will be really appreciate for any response.



    Thanks.

    Importing / Exporting multiple layers

    Greetings, I need to export / import current document with multiple layers. I tried to figure how to do with sdk documentation and samples, but I can't get the point.



    Here's my questions:

    1) Can I create, modify, delete layers dynamically in import / export plugins(or file format plugins)?

    I've searched the forum and someone said it can be done only in Automation plugin module. Can I do it in im/export plugins?



    2) If I can do 1), which plugin type and suite interface I need to choose?



    3) If there is any good sample to do something like what I want to do, please let me know.



    Any answer and advice would be very grateful. Thanks in advance!

    Plug-in to Extract Camera RAW Metadata

    Hello,



    I am new to Photoshop plug-in development and reading the Photoshop SDK helped a little, but not much.



    Because Photoshop doesn't have the tools and also because there are no plugins available that are capable of extracting all or specific metadata from different RAW camera files that my company needs, I am left with the job of writing a plugin to specifically extract the necessary metadata from these RAW camera files.



    I am looking through all the categories of different types of plugins(import, export, file format, filter, etc.) that I have to decide that fits the purpose that I am trying to accomplish. Being new at this, I am even stuck there.



    So if anyone have some tips that can get me started and help me on my way during development, any help will greatly be appreciated.



    Thanks in advance!



    T. Tran
    Plug-in to Extract Camera RAW Metadata
    I'm in the same boat.



    I'm also trying to extract some metadata to incorporate into a web gallery template (specifically to show the original filename against the current filename for tracking, and archival cross-reference). Dealing with a large number of images (in the hundreds of thousands) any way to do this would relieve a lot of redundant data entry.



    -Warren
  • mask making
  • Plugin on G4

    Hi folks!



    I've compiled an automation plugin with the cs3 sdk on mac as universal binary. It works on my Intel iMac as good as it works on my G5 iMac with Photoshop CS3 and CS2.

    But when i try to use it on a G4 the plugin isn't even loaded by Photoshop CS2.

    Is there any possibility to get it work on this platform or do i have to build it with Codewarrior for that platform.



    thanks for advice!
    Plugin on G4
    You can use either CodeWarrior or MPW. Xcode can't build the PEF executable needed for pre-CS2 Photoshop plugins.
    Plugin on G4
    As i've written i tried only Photoshop CS2. The same plugin was loaded by PS CS2 on a G5 and was NOT loaded by PS CS2 on a G4.

    Are different types of executables needed for G4 and G5. Is there a xcode parameter to enable G4 support?

    No, the same executable will be fine, as long as no code generation option is set unportably. Study all your Xcode build options in detail.

    Interlancer Sample Code Not Working

    Hi All,



    When I try to run Interlancer Sample Code which is included in Photoshop SDK cs2 It gives Lots of error (MD5.h is giving more errors ). I think this is only of Project Settings Problem.Other Sample Codes are working fine on my System.



    Does any one have any idea how to remove it? The Same error(LNK2005) Comes When I try to use MFC in my Automation Plugin.



    I have included the afx.h and afxwin.h at the top of every file

    Also I have included stdfx.h



    After that I am including the Photoshop's File. I am using Visual studio 2003 and 2005



    I have tried the solution given on the Microsoft site. but of No help.



    Below are the errors:



    error LNK2005: _DllMain@12 already defined in PIDLLInstance.obj nafxcwd.lib

    error LNK2005:''void * __cdecl operator new(unsigned int)'' (??2@YAPAXI@Z) already defined in PIUNew.obj nafxcwd.lib

    error LNK2005:''void __cdecl operator delete(void *)'' (??3@YAXPAX@Z) already defined in PIUNew.obj nafxcwd.lib

    error LNK2005: ''void * __cdecl operator new[](unsigned int)'' (??_U@YAPAXI@Z) already defined in PIUNew.obj nafxcwd.lib

    error LNK2005: ''void __cdecl operator delete[](void *)'' (??_V@YAXPAX@Z) already defined in PIUNew.obj nafxcwd.lib



    MD5.h--------------------------------------------------------------------

    error C2061: syntax error : identifier 'istream'

    error C2061: syntax error : identifier 'ifstream'

    error C2535: 'void MD5::update(void)' : member function already defined or declared

    see declaration of 'MD5::update'

    error C2143: syntax error : missing ')' before '%26amp;'

    error C2143: syntax error : missing ';' before '%26amp;'

    error C2460: 'MD5::istream' : uses 'MD5', which is being defined

    d:\Program Files\Adobe Photoshop CS2 SDK\samplecode\automation\Interlancer\win\md5.h(7) : see declaration of 'MD5'

    error C2059: syntax error : ')'

    error C2501: 'MD5::stream' : missing storage-class or type specifiers

    error C2143: syntax error : missing ')' before '%26amp;'

    error C2143: syntax error : missing ';' before '%26amp;'

    error C2059: syntax error : ')'
    Interlancer Sample Code Not Working
    Hi Sunil,

    its a bit difficult to do a remote analysis without the code or project settings, but the part about including the stdfx and afx/afxwin headers sounds a bit confusing. Do you include ''stdfx.h'' or ''stdafx.h'' and what is inside (gets included by) your stdfx.h? Usually you include the stdafx.h in every file of your project, wich then includes the afx.h and the afxwin.h. Maybe you're allready including them indirectly in the stdfx.h and then once again by the include statements?
    Interlancer Sample Code Not Working
    Hi Marc,



    I am so sorry about the typo error. Actually I have included stdafx.h and inside that afxwin.h is included.



    and I include afx.h in every file at the top of it.



    When I remove the afx.h and afxwin.h from the project then also it is giving the same error and same no. of errors.



    error----------------------------------------------------------------



    error LNK2005: _DllMain@12 already defined in PIDLLInstance.obj nafxcwd.lib

    error LNK2005:''void * __cdecl operator new(unsigned int)'' (??2@YAPAXI@Z) already defined in PIUNew.obj nafxcwd.lib

    error LNK2005:''void __cdecl operator delete(void *)'' (??3@YAXPAX@Z) already defined in PIUNew.obj nafxcwd.lib

    error LNK2005: ''void * __cdecl operator new[](unsigned int)'' (??_U@YAPAXI@Z) already defined in PIUNew.obj nafxcwd.lib

    error LNK2005: ''void __cdecl operator delete[](void *)'' (??_V@YAXPAX@Z) already defined in PIUNew.obj nafxcwd.lib



    ---------------------------------------------------------------------



    PS* The above error is coming in my automation plugin.

    ---------------------------------------------------------------------



    I have not changes anything in the samplecode of ''Interlancer'' Project. So, it is as it was provided during the download of CS2 SDK.But here the error which are coming is most of syntax error.



    Other Sample codes are working fine on my sysytem. So I was thinking that there must be some extra project settings for this interlancer project.



    Thanks and Regards,

    Sunil Kumar

    Hi Sunil,



    didn't no what I thought when I first answered, it couldn't be the afx.h inlcudes because they also have a #ifndef #define block - that was a stupid suggestion. I'll try to help you tomorrow, today I don't even have access to VS.

    Hi Sunil,

    which solution from Microsoft are you refering to, is it this one:

    http://support.microsoft.com/kb/148652/en?



    Also, instead of statically linking the MFC try to link it dynamic (or the other way around, depending on what is set in your project settings). Also try to change the use of precompiled headers to ''not using precompiled headers'' (you have to clean and then rebuild all afterwards).

    Otherwise I found those two suggestions in a forum:



    ''What you might want to try and do is go into the project settings and goto the C/C++ tag and then goto the Code Generation Category. There you will find the Use run-time library. You will want to make sure that all you librarys are either all single-threaded or multi-threaded. Have a play around with these settings. That might do the trick.''



    Make sure that (this is probably allready the case in your project):

    - the stdafx.h is only included in your *.cpp files

    - include stdafx.h then standard c headers then your own headers



    Good luck!

    Mosaic add-on request

    Could someone develop an add-on for photoshop with functions like Mazaika (it lets you use a library of pictures as mosaic tiles to create a bigger picture). It'd be really good because of the advance image editting capabilities of photoshop. Also it should be able to create a mosaic with current open images with a few clicks.



    thanks.
    Mosaic add-on request
    Hello Osman,



    I'm author of AndreaMosaic (http://andreaplanet.com/andreamosaic), and I just got the SDK because I had the same Idea. But it will take some time to complete this task (I'm new to Photoshop SDK).



    byeee

    Andrea
    Mosaic add-on request
    Hello,



    The only point is that usually to get a really good mosaic you need a high number of Images in your Image Collection and/or a High Number of Tiles for your mosaic. It's not a problem but to get maximum photomosaic quality the computation time is somewhat long. In that moments I don't want to freeze Photoshop.



    Another point is that the Image Collection to use for the tiles is located somewhere on your Hard Disk and of course not in memory.

    Please let me know about your needs and suggestions.



    byee

    Andrea

    error C2872: 'Point' and 'Rect' :...

    Hi All,



    I am making an automation plugin and trying to use gdi+. But it is giving Compilation error in PIGeneral.h and PIUtilities.h



    Does anyone have any idea how can I remove this ambiguity so that it point to GdiplusTypes.h



    Below are the errors..



    Regards,

    Sunil Kumar



    d:\Program Files\Adobe Photoshop CS2 SDK\photoshopapi\photoshop\PIGeneral.h(675) : error C2872: 'Point' : ambiguous symbol

    could be 'd:\Program Files\Adobe Photoshop CS2 SDK\photoshopapi\photoshop\PITypes.h(330) : Point'

    or 'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusTypes.h(277) : Gdiplus::Point'

    d:\Program Files\Adobe Photoshop CS2 SDK\photoshopapi\photoshop\PIGeneral.h(711) : error C2872: 'Rect' : ambiguous symbol

    could be 'd:\Program Files\Adobe Photoshop CS2 SDK\photoshopapi\photoshop\PITypes.h(336) : Rect'

    or 'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusTypes.h(519) : Gdiplus::Rect'

    d:\Program Files\Adobe Photoshop CS2 SDK\photoshopapi\photoshop\PIGeneral.h(720) : error C2872: 'Rect' : ambiguous symbol

    could be 'd:\Program Files\Adobe Photoshop CS2 SDK\photoshopapi\photoshop\PITypes.h(336) : Rect'

    or 'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\GdiPlusTypes.h(519) : Gdiplus::Rect'
    error C2872: 'Point' and 'Rect' :...
    I assume they are both in the std namespace? If so, seems like you'll need to wrap the gdi+ classes in a different namepsace so that there isn't any ambiguity.



    Alternatively, you could refactor the Point and Rect structs in gdi+ to avoid the overlap.



    Good luck.
    error C2872: 'Point' and 'Rect' :...
    Hi,



    Thanks for your reply. Point and Rect are defined in PITYPES.h and also in GdipluTypes.h. It is giving the error in PIGeneral.h and in PIUtilities.h. I am not using the point and rect in my code. So, I cannot change the PIgeneral.h and I think it is only included in the ''projectname.r'' file of the project.



    There must be some code which tells the compiler to include the GdiPlustypes.h in the project and leave the PITypes.h



    Thanks and Regards,

    Sunil Kunar

    Problem Parsing the Tiff file!!!

    When I try to open a tiff, I get a message that states: Could not open''C:\Documents and Settings\user2\desktop\65-AV1\65-AV1.tif'' because of a problem parsing the TIFF file.



    Can someone please help explain how I can open this tiff?
    Problem Parsing the Tiff file!!!
    What part of the Developers SDK are you using?



    Aandi Inston
    Problem Parsing the Tiff file!!!
    not sure what you mean by developers SDK.

    This is the '' Adobe Photoshop Developers (SDK)'' forum. If you aren't a

    Photoshop developer, you have the wrong forum! Take a look at the

    instructions above the list of messages.



    Aandi Inston

    PHOTOSHOP CS2 problem

    Hi everyone....

    I am using window XP and i have a problem

    I start to have a problem with PHOTOSHOP CS2.....it gives me problem at start..this is ERROR i am getting:



    This application has failed to start because MSVCRT10.dll was not found.Re-Installing the application may fix this problem



    I reinstalled photoshop CS2 and it didnt help....checked for that file and that file is in photoshop folder...anyone's sugestion what is my next step or how to fix this problem will be appreciated....



    Thanks

    Bianca Thomas
    PHOTOSHOP CS2 problem
    You have a very old plug-in (filter factory maybe) that needs a Microsoft runtime library. Do a search on your disk for it. Copy the file to the same folder that Photoshop.exe resides and try again. If you can't find it you may be able to get it from Microsoft.



    Your other option is to start removing the plug-ins found in the Plug-Ins folder to figure out which one is causing the problem. Make sure you don't delete the plug-ins, just remporarily move them out of the Plug-Ins folder.
    PHOTOSHOP CS2 problem
    Tom

    Thank u for this information...i have solved that problem, however i have different issue now...photoshop has been for me nothing but a problem...

    Thanks again
  • mask making
  • Photoshop on Mac vs Photoshop on PC

    Hi,



    I am in the process of upgrading my computer from a Windows XP SP2 based P4 to a ''something else''. Given an option, do i go in for a Mac or a Windows based PC machine? Does Adobe Photoshop run better on a Mac as against on a PC if so then how/what is the difference.



    I am a stills photographer and my primary need is a machine which can run smoothly and handle upto a 500MB Tiff files and multitask on batch processes.

    Primary softwares to be used will be Photoshop and Lightroom apart from prop. camera softwares.



    Please comment.

    Thanks in advance.



    Regards,

    Meethil

    www.meethil.com

    Multiple preview in Filter Plugin

    Hi All,



    Is it possible to have multiple previews of different images (one for one image)at the same time. I have made a filter plugin which shows one preview of the Current open document.



    Now suppose I have opened 5 Different images in Photoshop and I clicked my filter plugin it shows one preview on the dialog, of the image which is on the top of all the Images (i.e. Currently have focus or selection). Can I display the rest 4 Images on my dialog box as preview at the same time without changing the focus.



    Does Anyone have any idea?



    Thanks and Regards,

    Sunil Kumar
    Multiple preview in Filter Plugin
    I'm not sure if this will help you, but you can loop through all openend documents, as shown in the getter example and retrieve the document ids (code below).



    // we are ignoring errors so this will not give an invalid error

    // message when there are no documents open

    //Get actives doc ID:

    PIUGetInfo(classDocument, keyDocumentID, %26amp;currentDocumentID, NULL);



    //Get Number of openend docs:

    PIUGetInfo(classApplication, keyNumberOfDocuments, %26amp;numDocuments, NULL);



    if (numDocuments %26gt; 0)

    {

    for (docCounter = 1; docCounter %26lt;= numDocuments; docCounter++)

    {

    // this routine will error if we select the document



    // that is already selected, we don't care about this



    // as an error, keep chugging



    (void) PIUSelectByIndex(classDocument, docCounter);

    GetPathInfo(logfilename);

    GetHistoryInfo(logfilename);

    }

    // this routine will error if we select the document

    // that is already selected, we don't care about this

    // as an error, keep chugging

    //select the original front doc again

    (void) PIUSelectByID(classDocument, currentDocumentID);

    }

    VC8 EE ASUnicode* to WCHAR*

    I am using Visual C++ 8 (2005) Express Edition on a 32-bit platform. I am currently looking at source for PS2.



    In PIUActionUtils.cpp, WideCharToMultiByte's third argument takes a WCHAR* (type-deffed as LPCWSTR) as its third parameter. The function is called four times and passed as ASUnicode* each time.



    VC8EE would not implicitly cast, so to get it to compile I had to explicitly cast it:



    multiByteLength = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)unicodeStr, ...



    Now everything obviously compiles and I briefly tested the Listener plug-in without any problems (whew!).



    However, can someone more knowledgeable either suggest a better approach to fixing the problem or validate that the cast is ok?



    Thanks for your time!



    ~ David



    PS. FileInfoSearchReplace doesn't build with EE because it lacks MFC support (you can only add IA64 support with the Platform SDK). Just figured I'd take this on in case someone searches the forum later wondering why this one doesn't build in EE. (Specifically, NafxcWD.lib isn't included for 32-bit platforms ... the needed header afxwin.h is in the PSDK).

    Export plugin disabled in File menu

    My Export plugin is always disabled in the File%26gt;Export menu whenever the image to be exported is in Indexed Color mode. The PiPL resource for this plugin specifies doesSupportIndexedColor in SupportedModes and includes IndexedColorMode in the ''in (PSHOP_ImageMode, ...)'' EnableInfo expression string.



    What am I missing?

    photoshop CS and core 2 cpu

    can anyone tell me if photshop CS makes use of core2CPU. I have just changed to windows vista and have a core2 cpu. Large files are excrutiatingly long time to do anything.

    2GB RAM
    photoshop CS and core 2 cpu
    Are you using the Photoshop SDK? What parts?



    Aandi Inston
    photoshop CS and core 2 cpu
    i am a bit niave. No idea what you are asking me. What is SDK??? thanks

    The Photoshop SDK (Software Developers Kit) is used by programmers

    (developers) who want to write their own programs that use Photoshop,

    or add to Photoshop. Such as, the authors of plug-ins.



    Because there are dozens of forums, each with its own experts, it's

    important to choose the right one.



    At the top of the forum messages on the web you should see ''Adobe

    Photoshop Developers (SDK) ...

    This forum is for users of the Adobe Photoshop Software Development

    Kit. It is not a general Photoshop forum. For discussions about Adobe

    Photoshop please visit one of the following Forums...''



    Above all, this is not a way of reaching the developers of Photoshop,

    nor is there any direct way to do this.



    Aandi Inston

    REZ anyone?

    Hi,



    can someone give me some insights about rez? I'm trying to include some

    icons in my plugin but I can't find any decent documentation for Rez. I know

    how to include icons by raw data or by importing them from another resource file via their ID, but I'm looking for away to include them directly from an icon file and not from a rsrc file. Is this possible at all and could I also define some picture resources this way?



    Thanks,

    Marc
    REZ anyone?
    Building and Managing Programs in MPW (2nd edition)
    REZ anyone?
    Thanks a lot, I'll look into it!

    To address your questions, you have many options for data inclusion. You can pull in resources from other named files (perhaps edited in ResEdit or Resorcerer), or you can represent icon or picture resource definitions in your Rez source as hexadecimal strings, as you prefer.



    I'm not sure what format your ''icon'' file is, but you can also pull individual resource data from arbitrary files. See manual.

    I managed to include icons as hexadecimal strings directly as well as indirectly with $$READ. However, most icons don't display correctly, I guess maybe this has to do with either the icon type (.ico) or that the icon is missing the correct pixel/display size (I guess I have to read a bit more about resources /resource forks on the mac since the whole concept is still ab bit blurry to me). Sadly I don't have Mac OS 9 available and ResEdit won't work without it (Resorcerer is way to expensive ; ) but I'll see that I can get my hands on it somehow and I'll also try some other icon formats as well.

    So thanks again for the link to the documentation, that gave me a good start.

    -Marc

    This product didn't quite do what I wanted, but take a look at it for

    you:



    http://www.axialis.com/iconworkshop/



    .ico is a Windows format, no good on the Mac.



    Aandi Inston

    Thanks Aandi - looks just like what I need!

    About the format, this indeed was one of the problems, I use mac icons now ; ) But still some icons are badly distorted, this seems to happen because of the missing display/pixel data or me setting a wrong height for the entry. So I tried to get the height of the icon with

    sADMIcon-%26gt;GetHeight(icon), but I get a height of 0 for every icon I try (even those that display correctly), anyone got an idea about this?

    Also, is there a way to tell/force ADM to use a specific resolution for an icon? By default ADM seems to use 32x32 1 bit icons, but an 8 bit icon would be nice : )



    Also, please don't get angry at me in case I'm missing something obvious or am adressing rtfm-issues, but the icons are actually the last points on my todo list and I'm currently only messing around with them during breaks doing mostly try and (much) error ; )



    Thanks,

    Marc

    Find a copy of ResEdit or Resorcerer and make your icon suites there.
  • mask making
  • Regarding eventOpen

    Hi All,



    I am using the Listener.log file's Output to create a Automation Plugin Which open a document(Just Like File-%26gt;Open Menu). But I am Providing the file name in the openFile function which I have created based on listener.log file.



    sPSActionControl-%26gt;Play(%26amp;result, eventOpen, desc, plugInDialogSilent);



    But the problem is When I use the above code in openFile function. It does nothing. But an error is returned on this line.



    When I use the Code below

    sPSActionControl-%26gt;Play(%26amp;result, eventOpen, desc, plugInDialogDisplay);



    It opens a File open Dialog Box to select a file and then open that document which I have selected in the dialog box and Plugin is working very fine.



    But I don't want to open the 'File open Dialog box' and Instead my file whose name I have already supplied in the function Should be Open.



    Does anyone have any idea about that?



    Thanks and Regards,

    Sunil Kumar
    Regarding eventOpen
    There a two points you have to regard here: sPSAction-Play(...) tells Photoshop to invoke an action (in your case eventOpen), the desc variable contains the parameters for that action and the last variable

    (plugInDialogSilent/plugInDialogPlay) tells Photoshop if it should show a dialog or not when invoking the action (in this case: a file-open dialog). Now, you either show a ''select file'' dialog in which case you don't have to fill the desc variable or you have to fill the desc variable with the file-name using ''sPSActionDescriptor-%26gt;PutAlias(...)'' as shown in the code below:

    (You can also fill the desc and show a dialog in which case the file-name in desc is ignored (at least I think so))



    SPErr OpenFile(char * filepath)

    {

    SPErr error = kSPNoError;

    Handle tempAlias = NULL;

    PIActionDescriptor result = NULL;

    PIActionDescriptor desc = NULL;

    //Handle aliasValue = NULL;



    #if Macintosh

    FullPathToAlias(filepath, tempAlias);

    #else

    size_t size = strlen(filepath);

    tempAlias = sPSHandle-%26gt;New(size+1);

    if (tempAlias != NULL)

    {

    GlobalLock(tempAlias);

    strncpy(*tempAlias, filepath, strlen(filepath)+1);

    GlobalUnlock(tempAlias);

    }

    #endif

    error = sPSActionDescriptor-%26gt;Make(%26amp;desc);

    if (error) goto returnError;



    error = sPSActionDescriptor-%26gt;PutAlias(desc, keyNull, tempAlias);

    if (error) goto returnError;



    error = sPSActionControl-%26gt;Play(%26amp;result, eventOpen, desc, plugInDialogSilent);
    Regarding eventOpen
    Hi Marc,



    Thanks a lot for your help. ? I was using the similar code what you have provided but it was not working.



    Now I find the problem. I was passing the wrong path in the string(i.e ''C:\Test.jpg'').



    The Correct path is (''C:\\Test.jpg'')



    Thanks once again



    Regards,

    Sunil Kumar

    Removing the scrollbar of an...

    Hi,

    is it possible to hide the scrollbar in an ADM Multiline Textedit like explained in the ADM-FAQ for the ListBox? Is there a similiar constant for this child item like the ''kADMListBoxSCrollbarChildID''? Can't find anything in the ADMItem.h ...



    Thanks,

    Marc

    Error when try to build listener project

    I am trying to build the listener project using VC++6. But I get such errors:%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;--------------------Configuration: Listener - Win32 Debug--------------------%26lt;br /%26gt;Compiling resources...%26lt;br /%26gt;E:\FYP\test\Listener\Listener.rc(152) : fatal error RC1015: cannot open include file 'Listener.pipl'.%26lt;br /%26gt;Error executing rc.exe.%26lt;br /%26gt;E:\FYP\test\Listener\Listener.rc(152): Could not find the file Listener.pipl.%26lt;br /%26gt;E:\FYP\test\Listener\Listener.rc(153): Could not find the file About.rc.%26lt;br /%26gt;%26lt;br /%26gt;Auto.8li - 1 error(s), 0 warning(s)%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;%26lt;br /%26gt;if I comment the two lines that cause error, many errors come out as following:%26lt;br /%26gt;%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;--------------------Configuration: Listener - Win32 Debug--------------------%26lt;br /%26gt;Compiling resources...%26lt;br /%26gt;Compiling...%26lt;br /%26gt;Listener.cpp%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list%26lt;br /%26gt; e:\fyp\code\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'%26lt;br /%26gt;e:\fyp\test\listener\common\listener.cpp(301) : error C2660: 'GetFullPathToDesktop' : function does not take 2 parameters%26lt;br /%26gt;ListenerScripting.cpp%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list%26lt;br /%26gt; e:\fyp\code\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'%26lt;br /%26gt;ListenerUI.cpp%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2065: 'PSAliasSuite' : undeclared identifier%26lt;br /%26gt;e:\fyp\code\samplecode\common\includes\piusuites.h(46) : error C2955: 'AutoSuite' : use of class template requires template argument list%26lt;br /%26gt; e:\fyp\code\samplecode\common\includes\piusuites.h(28) : see declaration of 'AutoSuite'%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(115) : error C2660: 'GetCurrentSelection' : function does not take 1 parameters%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(184) : error C2660: 'GetCurrentSelection' : function does not take 1 parameters%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(259) : error C2660: 'GetCurrentSelection' : function does not take 1 parameters%26lt;br /%26gt;e:\fyp\test\listener\common\listenerui.cpp(330) : error C2664: 'SetText' : cannot convert parameter 1 from 'class std::basic_string%26lt;char,struct std::char_traits%26lt;char%26gt;,class std::allocator%26lt;char%26gt; %26gt;' to 'const char *'%26lt;br /%26gt; No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called%26lt;br /%26gt;ListenerUIWin.cpp%26lt;br /%26gt;e:\fyp\test\listener\listeneruiwin.cpp(28) : fatal error C1083: Cannot open include file: 'Listener.h': No such file or directory%26lt;br /%26gt;Error executing cl.exe.%26lt;br /%26gt;%26lt;br /%26gt;Auto.8li - 12 error(s), 0 warning(s)%26lt;br /%26gt;%26lt;br /%26gt;//==============================================================/%26lt;br /%26gt;%26lt;br /%26gt;Anybody could help me with this? Thanks.Error when try to build listener project
    Seems like visual studio does not know where the listener.pipl and the about.rc files are located. The listener.pipl is created/builded by a custom build step, by default this custom build step puts the created listner.pipl into the objects folder, you don't want it there though:

    Either:

    - copy the listener.pipl file next to your listener.r file

    - change the custum build step (=%26gt; Project settings =%26gt; custom build step), there you will find the output-dir parameter, which should look something like:

    ''$(IntDir)\$(InputName).pipl''

    Now, either change the IntDir macro (which originaly points to the obj folder), or simply change this to

    ''..\win\$(InputName).pipl''



    About the about.rc : either copy this next to your implementation files or make sure that in you project settings under:

    ''configuration properties-%26gt;c/c++-%26gt;additional include directories''

    you have added the path to the ''Adobe Photoshop CS3 SDK\samplecode\common\resources'' folder of the sdk.

    If that doesn't work remove all references to the about-dialog-box from listener (i.e. don't display an about box anymore); about.rc is just the ressource definition for the default about-box of plugins.
    Error when try to build listener project
    Marc Twiehaus, thank you very much for your detailed explanation. You are so professional! Now the first problem solved. Hehe, very happy! But still cannot debug all the errors. Seems they are related to a class template called ''PSAliasSuite'' of class ''AutoSuite'' in the file: amplecode\common\includes\piusuites.h

    What might the problem be? This is the SDK file, which is supposed to be error free....

    No problem, and no I'm not that professional (maybe in a couple of years ; ) - just trying to help with stuff I think usefull for a beginner, but thanks a lot. Now, to your problem:

    I guess its again a path issue, the example plugins need to include files from more than one location:



    - the PIUSuites.h for example is located in:



    [...]\Adobe Photoshop CS3 SDK\samplecode\common\includes



    - and the PIUSuites.cpp is in:



    [...]\Adobe Photoshop CS3 SDK\samplecode\common\sources



    While the PIAliasSUite.h is in:



    [...]\Adobe Photoshop CS3 SDK\photoshopapi\photoshop\



    Make sure that you have included those paths in your project settings,

    either relative to your project or directly, if that doesn't help please post the compile errors here and I will try to help you, if I can.

    Ah - just remembered something else!

    Take a look at:

    http://www.codeproject.com/tools/prjconverter.asp?df=100%26amp;forumid=10069%26amp;exp=0%26amp;sel ect=1319254



    This converts Visual C++ 7.0 projects back to Visual C++ 6.0 projects, so with this you should be able to use the workspaces/solutions that came with the sdk instead of having to reconstruct them yourself : )

    Hi brother!!You are so great!!!I really really thank you! All the problems have been solved till now, following your instructions. Haha, so relieved. I love you man!

    Great! Glad I could help you with this.

    How can I use sample codes

    For example, I want to open and edit the listener project, how exactly should I configure it using MS VC++6. Thanks
    How can I use sample codes
    It would not surprise me if VC++6 was not supported by latest SDK - You may be on your own. It can certainly be done with older SDKs though.
    How can I use sample codes
    The sample coeds can be built with the freely distributed VC++ 8 Express Edition. You just have to do one minor tweak (http://www.adobeforums.com/cgi-bin/webx/.3bc79360) which to date hasn't broken on me yet, but I don't know if it is safe. :-)

    Getting Alias to document from...

    I created Format plug-in and Automation plu-in which do something after saving document in that format. But a can't get a path where to save this doc. Please, Help!

    building a plug-in host

    Hi!



    I am looking for building a ''plug-in host'' for photoshop plug-ins. In other words: an application that accepts photoshop plug-ins

    Did, someone know where I can find help on this topic?

    I read that latest SDK from adobe don't expose API for building plug-in hosts meaning that I should use older SDK.. Is this true?



    I am planning to use my application with photoshop filters plug-in and my on HDR Tone Mapper plug-in.



    Thanks

    Tom
    building a plug-in host
    I don't think any version of the sdk is supposed to be used for building a plug-in host ... anyway, besides photoshop I only know of two apps that also accept photoshop plugins: irfanview and gimp. gimp is gnu, so you should be able to get your hands on the source (www.gimp.org) and maybe it will give you some clues on how to built a host yourself.
    building a plug-in host
    Older SDKs are not available from Adobe. I think (without having any

    inside information) that Adobe wish to make this as difficult as they

    possibly can, they do not see any commercial advantage in there being

    additional plug-in hosts.



    Aandi Inston

    Do you hear those black helicopters hovering over your house?

    Tom did you ever find help in creating a host plug-in app ?



    I'm able to execute some NON Adobe plugs-ins but having problems with display code or my AdvanceState proc when moving large image around in smaller dialog windows display. Many of the Adobe plug-ins are attempting to aquire a suite only used by Adobe plug-ins and is not documented anywhere.
  • mask making
  • Color Space Conversions -- Do Them...

    We have some image processing code that only works on files in LAB or in our proprietary format that we want to turn into a Photoshop filter plugin, so RGB, CYMK, or other formats will have to be converted before the image processing code can work on them, and then converted back to the user's format.



    In this situation, is it best to:



    1. Get Photoshop to do the conversions using an automation plugin.



    2. Use some simpler method than an automation plugin that will get Photoshop to always deal with the plugin in a specified format.



    3. Do the conversions yourself in the filter, and use a PiPL to limit the formats that will be accepted by the filter.



    4. So something else.



    5. Forget the whole idea.



    Vincent
    Color Space Conversions -- Do Them...
    Hi Vincent. I use Lab colour for my plug-ins. It's pretty easy to convert to this colour space from RGB or CMYK or grayscale. You'll want to use some or all of the following callbacks, depending on what image depths you're converting to and from:



    sPSColorSpace-%26gt;Convert8to16 (converts 8-bit data to 16-bit data)

    sPSColorSpace-%26gt;Convert16to8 (converts 16-bit data to 8-bit data)

    sPSColorSpace-%26gt;Convert16 (converts between colour spaces for 8-bit data)

    sPSColorSpace-%26gt;Convert8 (converts between colour spaces for 16-bit data)



    (You'll probably also want to use the PiPL to filter out those other weird colour spaces like duotone and multichannel.)



    -- Matthew
    Color Space Conversions -- Do Them...
    Hi Matthew,



    I meet a problem about convert 16 bits per pixel to 8 bits per pixel. I tried to use APIs:

    sPSColorSpace-%26gt;Convert16to8 (converts 16-bit data to 8-bit data)

    sPSColorSpace-%26gt;Convert8 (converts between colour spaces for 16-bit data)



    But I can not get the right image after converting. Could you give me the detail instruction (step by step) to implement this API.



    Thanks so much,



    Hieu Nguyen.

    Hi Matthew and All,



    I meet a problem about convert 16 bits per pixel to 8 bits per pixel. I tried to use APIs:

    sPSColorSpace-%26gt;Convert16to8 (converts 16-bit data to 8-bit data)

    sPSColorSpace-%26gt;Convert8 (converts between colour spaces for 16-bit data)



    But I can not get the right image after converting. Could you give me the detail instruction (step by step) to implement this API.



    Thanks so much,



    Hieu Nguyen.

    I have problem in converting XYZ to RGB and back to XYZ.

    I have XYZ values (95.59131427,99.81228861,107.3272762).

    I used standard formula for converting it to RGB as (255,254,253)

    Then i converted this RGB back to XYZ and got the result as (94.4277,99.2604,107.1700).

    Can any one let me know why recalculated XYZ value is not equal to the original XYZ value?

    Here are the links for the formulas which i have used for the conversions:

    http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html



    Thanks in advance for your help.



    Santhosh

    %26gt;I have problem in converting XYZ to RGB and back to XYZ.

    %26gt;I have XYZ values (95.59131427,99.81228861,107.3272762).

    %26gt;I used standard formula for converting it to RGB as (255,254,253)



    What ''standard formula''? If you mean those on the web site you

    references, is your RGB data definitely sRGB?



    %26gt;Then i converted this RGB back to XYZ as (94.4277,99.2604,107.1700).



    How?



    %26gt;Can any one let me know why recalculated XYZ value is not equal to the original XYZ value?



    You rounded data to less than 3 significant figures on conversion. Of

    course when you use an inverse formula you will have lost accuracy.

    This looks within the normal range of inaccuracy.



    Alternatively, the formula you found on the web site (how do you know

    it is trustworthy?) is not exactly inverted.



    Aandi Inston

    i should advise you to have a look at this http://www.acasystems.com/en/color-picker/faq-cmy-color.htm

    External program calling photoshop API?...

    Is it possible to include the photoshop api headers (CS2 SDK) in an XCode project and have the project instantiate photoshop and perform automation actions? I'm doing this in windows, but am new to Mac programming. Or is the API from the SDK strictly for plugins?



    Does anyone have XCode examples for CS2. I can't get Codewarrior. They are really rude if you call and ask about it.

    advanceState Confusion

    Hello,



    I have got a filter plug-in which uses advanceState to read scanlines from the plugin. However I seem to have crashes related to advanceState. (Using SDK 7)



    Q1. Can advanceState be called anytime in filterSelectorStart ? E.g I have got simple scanline reading loops but also loops which process a circular region. I want to call advanceState in several loops.



    Q2. Is it required to reset FilterRecord in some way before starting another loop which uses advanceState ?



    Thanks in advance.



    Dev
    advanceState Confusion
    advanceState is advancing the state from the previous state so several loops may have problems. I would look at using channel ports suite instead.



    Setting the rects to 0,0,0,0 should reset advanceState but that is an 'as is' warranty statement if you know what i mean.
    advanceState Confusion
    Thanks Tom,



    Interestingly I couldn't find what the ''state'' variables are.



    I have tried resetting the rects (it is hinted in the doc) but didn't really help.



    Are channel ports suite a direct alternative to advanceState or shall it be used in conjunction with advanceState ? I am a bit confused there.



    Thanks again.



    Dev

    FullPathToAlias: Character Conversion

    Hi! I use the FullPathToAlias-function to create an alias for open a document in photoshop.

    This function works fine with UTF8 names on Windows, but fails on Mac if there are any special characters like '眉' in the full path. How has the c-string be encoded to make this function work properly?



    AliasToFullPath function, which i use to get the full path of the current document seems to use decomposed unicode and utf8. But such strings don't work with FullPathToAlias.



    Does anyone know which ones would work?

    thanks, richard
    FullPathToAlias: Character Conversion
    Are you using the below code snippet for Macintosh? If I am not wrong, it is the replacement of ''FullPathToAlias'' for Macintosh. (I am new in this field).



    Handle tempAlias;



    #if Macintosh

    NewAliasMinimalFromFullPath(strlen(filepath),filepath,nil,nil,%26amp;(AliasHandle)temp Alias);



    Regards,

    Sunil Kumar
    FullPathToAlias: Character Conversion
    I did some further investigations:



    @sunil

    NewAliasMinimalFromFullPath is a deprecated function and needs a HSF-Path (e.g. Macintosh HD:path:to:somewhere) but I've got a POSIX-Path (e.g. /path/to/somewhere)



    FullPathToAlias workes fine with non-unicode full path (POSIX style). I tried some character encodings and I found out that it needs MacRoman encoding. Now i can open german umlauts and so on, but I can't open other unicode characters like chinese signs.



    Is there any other possibility for this?



    And why does FullPathToAlias expect MacRoman wheras AliasToFullPath returns UTF-8 ?



    thanks in advance, richard

    Program plug-in in Qt?

    Hi,



    I'm wondering is it possible to create a plug-in with dialog in other tools like Qt instead of Win32 SDK? I have not used the Win32 SDK for several years.



    Thank you very much!

    Hank
    Program plug-in in Qt?
    CS3 now provides the ability to use Flash to script UIs, so you have that rather

    rich UI API at your disposal. I'm not quite sure on how the integration would

    work from a plugin but it's at least theoretically possible.



    -X

    --

    for photoshop scripting solutions of all sorts

    contact: xbytor@gmail.com
    Program plug-in in Qt?
    I did a simple test. It looks like Qt works just fine.



    Thanks,

    Hank

    Lets warm up this thread a bit! :)



    Hank how did u do it? where u able to create a modal QDialog Object of some kind?



    any help would be appriciated!



    thx,



    mike

    I'm very interested in hearing more about using Qt widgets in Photoshop (file format) plug-ins. I tried to do this once with the CS2 plug-in but failed to get it to work. I don't recall exactly what happened (I may have got a window to show), but there were some showstoppers that I never got around.



    Is this now possible with CS3? Can you just popup Qt dialogs or do you need to start an event loop etc.? Any info would be greatly appreciated!



    Rob

    Hi Rob!



    It doesn't really work :( Due to the fact that QT is running its own eventloop it often happens that input directed for the qt window is also processed by photoshop itself.



    When you're intending to use QT as a modal dialog it may works over disabling the input for the photoshop window(or stopping the photoshop event pump at all), but if you trying to use it as a non-modal dialog i don't really see a simple solutions (leaving some kind of hacks besides).



    I solved my problem thru opening the QDialog as a separate application and solved the communication over pipes or os events. Not the cleanest method but it works for me.



    Good luck with whatever you try to accomplish.



    If you make any progress on this matter i hope ur will share :)



    so long,



    Michael

    OSX using dylib with filter plugin

    Hello



    Ive build a filter plugin for CS3 using xcode.

    Two dylibs are used, and everything is working, if I put the these dylibs at the same location like on my development computer. But the dylibs are not found, if they are placed in the plugin-bundle, in the PS-folder, in application-support, .....



    How can i make this plugin work with the dylibs located in the plugin-bundle? This would be the best way for destributing my plugin.

    Are there other posibilities?



    many thanks in advance.

    Greetings Klaus
    OSX using dylib with filter plugin
    are the dylibs loaded automatically or do load them by e.g. dlopen?
    OSX using dylib with filter plugin
    They are loaded automatically.

    The only thing that ive done (and being aware off) was adding these libraries to the xcode-project.



    Greetings Klaus

    One thing that could help is putting them in the Frameworks folder of

    the plug-in bundle.



    Aandi Inston

    Thanks for the answer, but it is not working this way.



    I still get the error-message and the console shows:



    2007-08-26 12:11:40.294 Adobe Photoshop CS3[9922] CFLog (21): Error loading /Users/kl/Desktop/Adobe Photoshop CS3 SDK/samplecode/Output/Mac/Debug/Debug_i386/ColorAIXchange 2.0.0b0.plugin/Contents/MacOS/Dissolve: error code 4, error number 0 (Library not loaded: /sw/lib/libjpeg.62.dylib



    It looks like the path to the library is firm, but I cannot find the place where to change this.

    In Codewarrior I would link the lib into the plugin or use weak linking and load the lib 'by hand'. Im not very used to xcode.....



    Greetings Klaus
  • mask making
  • How to hook photoshop to intercept user...

    Anyone could help me or just give me some hints on this. Thanks.

    How can I place listeners on actions or...

    I want to add listeners to photoshop actions. For example, if a user use brush to draw a line, how can I get this event and use it to trigger something else? Does any PS SDK doc include this area? Thanks
    How can I place listeners on actions or...
    I'd say you can not do this - take a look at:

    http://www.adobeforums.com/cgi-bin/webx/.3bc43535/0
    How can I place listeners on actions or...
    thanks for you reply. But is there any means we can retrieve the history with details such as parameters of filter?

    Sorry, I can't help you much with that, take a look at the getter-plugin example - it gets some history information, but I'm not sure if it also retrieves any parameters, maybe this will give you some insight.

    Thank you for your advice

    you can listen for a 'this action just got executed' and you can listen for the 'brush tool just got selected' but you cannot listen to 'brush strokes'.

    Automation plugin: Get filename of...

    Hello!

    I'm writing a automation plug-in and i need to know where the location of the current active document is.

    does anyone know how to get it?



    thanks richard
    Automation plugin: Get filename of...
    Hi,



    take a look at the ''propetizer'' plugin example that came with the sdk,

    this plugin shows some properties of the current active doc including its path using the PropertyProcs Suite:



    OSErr PIGetDocumentName(string %26amp; name)

    {

    Handle h = NULL;



    OSErr error = sPSProperty-%26gt;getPropertyProc(kPhotoshopSignature,

    propTitle, 0, NULL, %26amp;h);



    if (!error %26amp;%26amp; h != NULL)

    {

    error = HandleToString(h, name);

    sPSHandle-%26gt;Dispose(h);

    }



    return error;

    }
    Automation plugin: Get filename of...
    hi!

    this function only works with Photoshop on Windows systems.

    On Mac I get only the filename without the path. is there another property which delivers the full path to the current document?



    thanks in advance

    ricahrd

    Oh, you want the FULL path? ; ) Sorry, here's how to:



    Look at the Getter-plugin example: ''install'' getter, launch photoshop, open a doc and start getter from the file menu - the log contains the full path both on mac and win.

    Now take a look at the GetDocumentInfo() function - this gets all the available info/props from a doc using DumbInfoFromDescriptor() (defined in PIUActionUtils). The function loops through all open docs, retrieves their properties with DumbInfoFromDescriptor and stores them into the log-file.

    The code in the ''case typeAlias:'' statement shows ho to get the full path from the mac alias (=%26gt;AliasToFullPath()) and the rest shows how to obtain the alias needed for this. All you have to do is clean the code so that it will only retrieve the full path and not all the other stuff and change it so that it doesn't store the path in a file but returns it to you instead.

    Pixelated photos

    How do I get the best results from digital photos? I am sending them to my digital black and white copier. They look fine on the screen but printed very pixelated. They are very large files that I am bringing down to about 15% of the original size.

    How can I write an installer for filter...

    Hi,



    My filter works with several files.

    I should take some files in different folders (Actions, Filters, Styles, Textures...)

    Which installer can I use? Which installer knows the Photoshop directory?



    Thnx for any help

    Felix
    How can I write an installer for filter...
    For windows systems I'd recomend the inno setup compiler (free):

    http://www.jrsoftware.org/isinfo.php

    It's quite easy to use, you should be able to ''click-together'' a setup

    in no time. The paht to photoshop-plugins can be obtained through the registry (Inno supports this), its stored under :

    ''HKEY_LOCAL_MACHINE\SOFTWARE\ADOBE\PHOSTOSHOP\10.0\PLUGINPATH''
    How can I write an installer for filter...
    thnx

    Opp,

    If somebody use CS2 or CS1?



    Is this PHOSTOSHOP\9.0\PLUGINPATH..., PHOSTOSHOP\8.0\PLUGINPATH'' ???

    You can also use this to find the photoshop executable:



    RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshp.exe', 'Path', sPath);

    (''HKEY_LOCA_MACHINE\SOftware\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe'')



    The problem with the plugin path is that its named differently depending on your os language, e.g. ''Zusatzmodule'' in german. Now, since you do not know wich version is installed, you can't query the reg-key I stated first and without it you can never be sure how the plugin folder is named on the target platform.

    Now either you try a reg-key for each version 1.0 to 10.0 until you get a valid entry or you can use the reg-key from above and put your plugin directly into photoshops root folder - it will be found there too. Of course that's a bit messy, but you don't have to worry about plugin-folder name and/or ps version that way.

    Composite RGB Curve math

    In Photoshop's Curves dialog (CS3), you can add control points to the composite RGB curve by command-clicking an area of the image. I've tried to figure out how the location of the added control point is determined from the color that was clicked on, without success.



    For example, command-clicking on a solid of RGB (127,127,190) results in a control point at 134,134. I can't figure out the relationship between the source color and the control point.



    It's not the average, max, H, S, L, etc.



    Anyone know?



    Thanks,



    --Rich Wagner
  • mask making
  • Localize on Photoshop plugin SDK

    Dear All,



    I am developing an application which needs to support multiple language. So I don't know that Photoshop SDK supported localize or not?



    Please help me.



    Hieu Nguyen.
    Localize on Photoshop plugin SDK
    A plug-in for Photoshop must support localization issues. Photoshop does not have any support for localizing third party plug-ins.



    What exactly are you looking to support in multiple languages?



    We do have some technology that helps us localize strings but it is just for our internal strings and not a plug-in developer solution at this time.
    Localize on Photoshop plugin SDK
    Dear Tom Ruark,



    I would like to implement as following:



    + When application starts up , it recognizes the current language of OS and set the application's message base on this language

    + When user selects another language, the application will change the application's message base on that language.



    + I store the localize strings(message) on text file. Base on each language, I have each text file.



    Do you have any Localize Manager library that compatible with Photoshop SDK or some technology? please share with me.



    Thanks so much,



    Hieu Nguyen.

    How to know current selection rectangle

    Hello,



    I need to know (with SDK) the current selection rectangle.

    I use listener to create my action fonction but listener let to Set a selection but not Get.

    If someone can help me...

    Thanks
    How to know current selection rectangle
    There is a bounds to a selection of a document. BEWARE: This is the bounding rectangle of the selection. If you have a selection with holes in it then you may not be getting what you expect.
    How to know current selection rectangle
    Whith what function PIUGetInfo... can i obtain this bounding rectangle ?

    Automation Plugin: Problems with...

    Hi,



    I've created an automation plugin similiar to the listener-plugin example in the sdk and I'm poping up a modal dialog when receiving the shutdown message/call from photoshop. When I quit Photoshop, the dialog shows for about 1-2 secs then vanishes and photoshop crashes. On the other hand, on windows the shutdown process is halted until I dismiss the dialog by button, just as I expected from a modal dialog (and then photoshop exits normaly).

    I also tried to receive the eventQuit notification, put this event never ever seems to be sent by the host (both on win %26amp; mac).



    Any help would be greatly appreciated!

    Thanks,

    Marc
    Automation Plugin: Problems with...
    No ideas anyone?

    Basicly I want my plugin to behave like Photoshop when a 'dirty' file is still open and the uses quites the app. I want to pop up a dialog, do some conditional saving stuff and even prevent Photoshop from closing.

    Is this possible at all?



    Thanks,

    Marc
    Automation Plugin: Problems with...
    You should not try to do anything during the shutdown except clean up after yourself in preperation for exit. Photoshop is in the middle of tear down so you can't know what resources and functionality is availabe during the shutdown sequence.

    Thanks Tom. I now use a mac os notification class to pop up my warning

    message, this works fine. However I'm still lookin for a way to receive event notifications before photoshop has handled them, something like the PreTranslateMessage method from windows/mfc. Would that be possible?

    Also, sometimes I miss some of the events, e.g. when closing a dirty document, photoshops asks if I want to save the doc, but I only receive the close-event, not the save-event. I noticed this seems to be the case with all events triggered indirectly, as the save event when closing a dirty doc or opening/closing/saving a doc from my auto-plugin.

    So my big question is, am I doing it wrong or am I trying the impossible?



    Thanks,

    Marc

    Multi-Select Listbox with ADM?

    I've been attempting to get a multi-select listbox working in a dialog managed by ADM. However there seem to be a couple of issues. LISTBOX seems to only be supported in DIALOGEX resources, while ADM doesn't seem to display DIALOGEX dialogs, only DIALOG. The listbox appears in a DIALOG dialog, but the multi-select functionality is disabled. Has anyone ran into this issue and found a solution? The ADM List Suite includes NumberOfSelectedEntries and makes reference to multi-select lists, but I can't seem to find any further information. Any help would be greatly appreciated.
    Multi-Select Listbox with ADM?
    Hi,



    don't use the vs resource editor to create a listbox. Just define

    a dialog resource without a listbox and add the listbox from your

    plugin-code using adm.

    - first, create the dialog with:



    sADMDialog-%26gt;Modal(gPlugInRef, ''A Dialog'', kDAVPluginADMJobQueue,

    kADMModalDialogStyle,

    DoMyUIInit,

    NULL, // No user data

    0 //options

    );



    - then create the list in the dialogs init proc (here: DoMyUIInit)



    ASErr ASAPI DoMyUIInit(ADMDialogRef dialog)

    {

    ASErr error = kSPNoError;

    ADMItemRef item;

    .

    .

    .



    //list box bounding rect, you have to adjust this to

    // your dialogs needs

    ADMRect rect;

    rect.top=30;

    rect.left=10;

    rect.bottom=200;

    rect.right=200;



    #define kADMMultiSelectStyle (1L%26lt;%26lt;0) //see ADM-Doc for this



    //create the list:

    ADMItemRef item=ADMItem-%26gt;Create(dialog,ADMUniqueItemID,

    ADMListBoxType,

    %26amp;rect , NULL, NULL );

    //set the multi-select style to the listbox

    sADMItem-%26gt;SetItemStyle(item, kADMMultiSelectStyle);



    .

    .

    .

    }
    Multi-Select Listbox with ADM?
    Thanks. I tried that, but forgot about using kADMUniqueItemID instead of using the same one I'd had in my enum for the listbox when using a resource. I even remember reading about using it in the reference manual.



    Thanks again. :)

    You're welcome, I'm glad I could help you a bit.

    CS2 resets

    I installed CS2 a few months ago. Occasionally when I load Photoshop it reverts to some default mode. My printer settings are changed, grid settings changed, workspace back to default %26amp; several other changes are made. I put everything as i want it but sometime later a Photoshop load will revert to some default configuration. Saving my workspace does not prevent the reversion but i can get my workspace back using the saved workspace. All the other settings remain screwed up until I go through the whole routine of changing back to my settings. Tried calling tech help but can't get through.

    Sunday, March 28, 2010

    Startup Plug-ins & Scripts

    Is there a way to automatically invoke a plug-in that I wrote with the SDK? There was no Startup Scripts folder under my CS3 installation for Mac OS X, and the script events get wiped out every time I start the program. Is there another way?



    Thanks



    -- Paul
    Startup Plug-ins %26 Scripts
    Paul_McEwan@adobeforums.com wrote:

    %26gt; There was no Startup Scripts folder under my CS3 installation for Mac OS X

    %26gt;



    The startup scripts folder on the Mac is ''/Library/Application

    Support/Adobe/Startup Scripts CS3''. If it's not there, create it and you should

    be set.



    -X

    Automation Scripts From Plug-Ins

    Is there a way to execute an AppleScript or JavaScript or some Photoshop command from within a plug-in?



    Thanks



    -- Paul
  • mask making
  • Event Handling: Save/Save as

    Hi everyone,



    is there any way to process Photoshop events before they are actually handled by photoshop? What I mean is, e.g. when the user saves a file I want to prevent the whole save process given certain circumstances. I have a working notifier for ''eventSave'' in my automation-plugin but I do not receive notification directly on this event (i.e. when the user has chosen save/save as from file menu) but only after photoshop has saved. What I'm trying to do here is check my global flag and if its on and the user wants to save, I want to pop up an info-box and cancel/prevent the whole save event.
    Event Handling: Save/Save as
    Did u get to know how to handle these events?

    Thanks
    Event Handling: Save/Save as
    To the best of my knowledge, this is no documented way of doing it: the Photoshop event model is based on ''do-and-notify'' paradigm, so unless the powers that be suggest differently, the answer is ''no''.

    ColorSpace_Convert16to8 API supported...

    Hi all,



    In ''Photoshop API Guide'' document, I saw that ColorSpace_Convert16to8 API use to convert pixel 16bits to pixel 8 bits. But I don't know the ''Suite PEA Color Space'' suite supported for global or not?



    Please give me some suggestion.



    Thanks,



    Hieu Nguyen.

    create sloppy frame borders

    Can Anyone tell me how you create ''sloppy'' border frames for a photo?
    create sloppy frame borders
    Not sure what you mean by ''sloppy''. When you make a PSD file with a white b-ground then your image on a layer a little smaller you can use a brush to paint an edge effect.
    create sloppy frame borders
    Look at Showit Borders @ showitfast.com.

    Parsing plugin files for there unique...

    We've create a routine that reads the plugin folder and lists the 2nd party plugins. The next goal is to parse the files for their identifiers, such as the ''GsnB'' in this native photoshop gaussian filter command...



    executeAction( charIDToTypeID( ''GsnB'' ), undefined, DialogModes.ALL );



    My assumption is that since the sdk describes how the plugin is to be written, wouldn't part of the plugin file (in a standardized way) contain its unique descriptor? It must. Where else would Photoshop get it from?



    Is it wrapped in compiled source code?

    Mac OS X development: dialog resource...

    Hi,



    I'm desperatly trying to create a simple dialog with 2 buttons and a simple listbox. However so far I miserably failed at doing so, the dialog and listbox shows fine but the listbox never gets filled. I defined a resource file with 'DLOG', 'CNTL' and 'ldes' but I seem to miss something in the listbox definition. If I leave out the 'ldes' resource I end up with a simple pop up menu (which shows my list items fine), putting it in leaves the list empty. Later I want to create a hierarchical list using the ADMSuites, but since even this simple list won't work ...

    By the way, I just started developing on the Mac, and my knowledge and experience are almost nil, so if anyone had a working *.r file/code-snip

    for me that just would be great.
    Mac OS X development: dialog resource...
    Ok, this one is obsolete - I succesfully created my listbox on an empty dialog template usind ADMItem-%26gt;Create(...) thus not needing the resource definitions for the mac anymore.

    How to batch convert bmp files into jpg...

    How to batch convert bmp files into jpg by dos command or c# program language?

    Many thanks for replying.
    How to batch convert bmp files into jpg...
    Try
    GraphicsMagick.
  • mask making
  • regarding listener.log file

    Hi,



    The listener.log file is showing the following code snippet.But when I put this code to my source file (Automation Plugin), it is giving error as 'FullPathToAlias' unrecognised symbol.



    // Move this to the top of the routine!

    Handle aliasValue = NULL;

    FullPathToAlias(''C:\Test.jpg'', aliasValue);



    Do I have to include any header file? Does any one have any idea? I am just wanting to dispaly an image preview on dialog box(Automation plugin).



    Please give any idea how can I get the image referrence for the first time from the Hard Disk?



    Can anyone help me out.....................?



    Thanks and Regards
    regarding listener.log file
    FullPathToAlias is defined in PIUIFile.cpp as following:



    void FullPathToAlias(char* fullPath, Handle%26amp; aliasValue)

    {

    aliasValue = NULL;

    #if __PIMac__

    AliasHandle aHandle = NULL;

    // this could error with fnfErr, file not found error, ignore

    (void) sPSAlias-%26gt;MacNewAliasFromCString(fullPath, %26amp;aHandle);

    aliasValue = (Handle)aHandle;

    #else

    Boolean oldLock;

    Ptr address;

    aliasValue = sPSHandle-%26gt;New(strlen(fullPath)+1);

    if (aliasValue != NULL)

    {

    sPSHandle-%26gt;SetLock(aliasValue, true, %26amp;address, %26amp;oldLock);

    strncpy(address, fullPath, strlen(fullPath)+1);

    sPSHandle-%26gt;SetLock(aliasValue, false, %26amp;address, %26amp;oldLock);

    }

    #endif

    }



    If you still got problems, I can send the code-snippets I use for loading %26amp; saving a file.
    regarding listener.log file
    Hi Marc,



    Thanks for your reply. I have found the file PIUFile.cpp. Now My plugin is working fine and I have opened the desired file in photoshop through my plugin.



    Thanks once again.



    But I have one more problem and rather it is big for me because I am trying to solve it for the last one week. I have made a automation plugin and I want to display image from a folder to my plugin Dialog as a thumb nail image (just like Picture Package... plugin) but not doing any thing with image just want to placed it on the new document behind the plugin dialog. I am not able to get the referrence of the image on my dialog box.



    Can you help me out regarding this problem. Also there is not available any source code or a little help for Automation Plugin (Filter plugin source code are only available).



    Thanks and Regards,

    Mmh, so you're trying to do something like a file-preview?

    I don't know if this is possible, mainly because at the moment

    I can see no way getting any image data before you've loaded

    the image in photosphop (with just using the sdk and not any

    mac/win api)

    If you're developing only for windows targets, you might want to

    try to develop a mfc type plugin like the ''mfcplugin'' from the filter-

    plugin examples. It does give a preview of the result of an filter

    applied to an image, so I'd guess you can change this with the help of the win-api to preview some picture file. For MFC there are also some

    nice solutions on codeproject you could easily integrate in your plugin:



    a thumbnail control:

    http://www.codeproject.com/miscctrl/thumbnailctrl.asp



    and a picture control:

    http://www.codeproject.com/cs/miscctrl/ScalablePictureBox.asp



    Otherwise the ''dissolve''-plugin from the filters example is for mac and win os's and offers also a preview (of a filter application), maybe this will give you some more insight.

    Posting guidelines

    It would really help to know what the purpose of this forum is. My two questions are obviously now in the large junkpile of questions that will never be answered.



    - What sort of questions are desireable/undesireable here?

    - Are there posting guides anywhere?

    - What is the jist of this forum? Is it just to aid developers in writing specific types of add-ons only?

    - Is there another group somewhere that is better for questions outside the scope?
    Posting guidelines
    This is a user to user forum. So its purpose is to build a community

    of users who are interested in discussing the subject (Photoshop SDK).

    If it seems to you that not enough questions are getting answers, it

    isn't a question of scope: it means the community needs to enlarge.

    Why not stay and add to it...?



    Aandi Inston
    Posting guidelines
    Thanks for the info. I'd love help to but I'm not a developer. Our app designer is in another country. I am just helping him construct his questions so they are clear. My input would not help much.

    Imageready - optimization failure

    Hello. I'm in dire straights. I have a 13 mb file that I'm trying to ''save optimized'' for the the web. It contains several slices and rollovers. When I ''save optimized'' my computer freezes and nothing is rendered. I've done this several times before and have never had problems.

    I'm on a Windows XP machine (Dell Lattitude D620).



    Thanks in advance for any help,

    Luis
    Imageready - optimization failure
    Are you using the Photoshop SDK? If not, you may find this is not a

    good forum for answers for you.



    Aandi Inston

    How to get the first address of image...

    Hi everybody,

    May you help me to solve following problems?

    1. In function void HiddenPlugin::Write(void) in Hidden plug-in in line:

    bigError = sPSChannelProcs-%26gt;ReadPixelsFromLevel(readChannelDesc-%26gt;port , 0, %26amp;currentRect, %26amp;pixelMemoryDesc);

    a. I base on pixelMemoryDesc parameter, i get the first of image address of each channel. This has problems:

    - With image 8 bits, I get address ok. And i shows it by another program is wonderfull

    - With iamge 16 bits, I get address ok. But i change 16bits to 8bits than show, it has difference from source. I think this address is change when Photoshop shows. How i can get orginal address of image 16 bit.

    2. For that problem, can give me example to get orginal address of image 16 bit.

    phatls@fsoft.com.vn

    How to move CodeWarrior plug-in project...

    Hi everybody,

    I have a problem in moving CodeWarrior Photoshop plug-in project to Xcode Photoshop plug-in project:

    1. I had done as step by step in file makingxcodeprojects.html (Conversion process for Adobe Photoshop plug-ins). I thinks who concern this problem always have. But it isn't more detail with moving simpleformat project in CodeWarror to simpleformat project in Xcode.

    2. Please, may you give me another example (step by step, i hope it is more detail in configuration step, libraray step, code project step). If so, thanks alot.

    Thanks,

    Phatls@fsoft.com.vn

    Programatically launch 3rd party plugins

    Are there any api commands that can be used to launch a plugin?



    We are not wanting to use action manager to create and copy scripts.
    Programatically launch 3rd party plugins
    Using automation or scripts is the only way to call a plug-in programatically.
  • mask making
  • How to get pixel data from any layer in...

    1) How to get pixel data from any layer in format plugin in write functions? (Need read only)

    2) How to get Resource data (XMP) in format plugin in write functions? (same)
    How to get pixel data from any layer in...
    See the documentInfo pointer in the FormatRecord. There is a ''layer'' linked list that will get you all the channels for all the layers.



    See the PIProperties.h file for the 'hash' value for XMP data.

    Determine plug-in author and name

    How can we programatically obtain then 'name' and 'author' of all currently installed 3rd party plug-ins in a PS installation?



    I am thinking that we can somehow get it from the plug-ins folder, though I can see no obvious way. What about determining what 3rd party plug-ins photoshop has loaded on launch?



    Nick

    Vista brings new plugin headaches?

    With the release of Vista and/or CS3, I'm seeing more support issues for my plugins: New crashes and other regressions.



    Now, of course, this could all be in my code; but the same DLLs are all mature and well tested under XP and other versions of Windows and are not generating support issues there (not to mention on five distinct Mac runtime platforms).



    Any other plugin developers seeing a spike in support problems? Any explanations or specific new issues/workarounds? If so, are they related to Vista in general or CS3 specifically? Is Adobe seeing glitches caused by Vista? Is there a correlation with development systems?



    Don't be afraid to speak out... haha.

    can I use ADMImageRef

    Hi All,



    Can I use ADMImageRef to get a reference from an image file stored on the disk by specifying its name.



    I have created an automation plugin and on dialog box I have placed a Preview area using ADMRect. Till Now My plugin is working fine. Now I want to display an image (say C:\\Test.Jpg)in the preview area. How can I get the image to display in the preview area?



    Any help will be highly appreciated.



    Thanks

    Modal Dialog & ADM: Visual Studio Bug...

    Hi everyone,



    I just spent half a day tampering with the ADMDialog suit trying to create

    a modal dialog for an automation plugin. Problem was that my dialog was

    created but never shown, it just stayed invisible (yet still catched button

    events).

    Now obviously this has something to do with visual studio (version %26gt; 6.0) and the *.rc files (automatically) created. Following is the resource definition that is auto-created by visual studio:



    16001 DIALOGEX 0, 0, 189, 120

    STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION

    CAPTION ''An example Plugin''

    FONT 8, ''MS Sans Serif'', 0, 0, 0x0

    BEGIN



    This won't work with the ADMDialogSuite DoModal(). Change the

    ''DIALOGEX'' to ''DIALOG DISCARDABLE'' and delete the enumeration

    after the font def (including the '',''), so it looks like this:



    16001 DIALOG DISCARDABLE 0, 0, 393, 154

    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU

    CAPTION ''An example Plugin''

    FONT 8, ''MS Sans Serif''

    BEGIN



    Now, the dialog will just show fine. I found the solution in the illustrator forum, here is the original post:

    http://www.adobeforums.com/cgi-bin/webx/.3bbbaae1



    -Marc
    Modal Dialog %26 ADM: Visual Studio Bug...
    One would really think that by 2007 ADM would support DIALOGEX resources.... This same issue has been biting me, with the additional issue that LISTBOX with multi-select support only seems to be available with DIALOGEX.



    I'm continuing to prod at ADM and the resources. I'll post an update here if I figure out a way to get it working.

    imageready cs2 to photoshop cs3 file...

    hello;



    when opening a Imageready file with rollovers in Photoshop CS3 you only get the ''normal state''



    anybody knows of an app or plugin that would convert all old rollover states in a way PS CS3 understands?



    thanks

    Alex
  • mask making
  • How can I communicate between plugins?...

    I'm working on a project that requires a filter and an automation plugin to work together. I would like to be able to send messages of some sort between the two plugins. What would be the correct way to do this?



    Any help would be greatly appreciated.



    Thanks,

    Joe
    How can I communicate between plugins?...
    See AutomationFilter (automation plug-in) and Hidden (filter plug-in) examples in the SDK.

    How can I write outside of the...

    I want to warp a layer and store the result in the targetCompositeChannels. Because the result may be so large that some

    pixels are outside the bound of the targetCompositeChannels, the result can not be stored completely.



    PS: In the sample code ''PoorMansTypeTool'', in a image 100*100, when i set the fontsize large, i.e. 32, the result is only a part of ''HELLO WORLD''. the plugin doesn't write outside the bound.



    what should i do?



    Thanks in advance!

    How can i down the adobe photo shop cs2

    plss help me tnx! and god bless!

    Can i use Channel Ports Suite and...

    Hello all:



    I have a try, there are some thing wrong.

    For example, in the sample code ''PoorMansTypeTool'', When I added a line ''gStuff-%26gt;inRect = gStuff-%26gt;filterRect;'' in the function DoEffect(), The photoshop crashed.

    I'm completely confused.



    Thanks in advance!

    tools not working

    I just purchashed a new HP Pavillion, 3800AMD Athlon cpu, 1.0 gb ram,Windows XP sp2. I installed and reinstalled Photoshop 7.0 Several of my tools are still not working. The tools are eraser, paint brush and smudge. These tools worked fine on my old pc.

    Sandra Haggerty
    tools not working
    I would try calling Adobe tech support.

    Plugin to write custom TIFF tags while...

    Hi -



    I'm thinking of introducing custom TIFF tags into my TIFF images -- within Photoshop and I'd like Photoshop to save the TIFF images with the custom TIFF tags. How would I go about doing this?



    Thanks



    - Olumide
    Plugin to write custom TIFF tags while...
    Use
    libtiff. I wrote
    a plugin which uses that library. It has a minor remaining bug - build related, not code - but otherwise is fairly complete.
    Plugin to write custom TIFF tags while...
    I'm interested in doing something similar for NITF images, however, I am not familiar with a technique for passing metadata between host and plug-in using the file format plug-in API. Is there a way to do this in the CS2 or CS3 file format plug-in API? Thanks,



    Rob

    Hi Rob,



    I posted the same question on the main TIFF mailing list (see thread http://www.asmail.be/msg0054766792.html ). You'll be interested in Chris Cox's comments on that thread.



    Regards,



    - Olumide
  • mask making
  •