2 Replies Latest reply on Sep 7, 2011 2:25 PM by jmituzas

    CS5 - Export .jpg specify (or change) Image Size

    jmituzas Level 1

      Ok we have currently setup 2 templates one for print cards and one for web cards. What we would like to do since both cards are identical except the size of the card, is have just one template. Both of these are linked to .Ai vector graphics.

       

      Problem is Print card is

      W: 91.437 mm

      H: 53.338

       

      Webcard is

      W: 17.5 in

      H: 10.208

       

      We have tried first using the print card template which works out great for our printer but when we upload to the web it turns out very pixelated, even when we specified the following preferences:

       

      for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){

      myPageName = myDocument.pages.item(myCounter).name;

      app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;

              app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;

               app.jpegExportPreferences.exportResolution = 128;

         app.jpegExportPreferences.pageString = myPageName; 

       

      My guess is because of the size is alot smaller then what we had originally for web cards.

       

      _________________________________________________________________________________________

       

      Then we tried to use the web card and export for print, but upon uploading it dosen't scal correctly to the printer and they only see the middle of the card, because it is over sized.

       

      Have tried the following against the print template:

       

      var myDocument = app.documents.item(0);

          with(myDocument.documentPreferences){

      pageHeight = "17.5 in";

      pageWidth = "10.208 in";

       

      but this has only changed the page size not the image.

       

      Any way to resize or specify a size for a complete image .jpg not just the page?

      Please help, thanks in advance,

      Joe