Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 29th, 2004, 12:35 PM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Location: Barcelona, , Spain.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default inserting gifs in dreamweaver with right size

I have created a gif in Fireworks with a resolution of 500 px/cm. When inserting the image in a Dreamweaver page, it takes lots of space, possibly because it is drawn a much lower resolution (maybe 72). If so, is there any way to "inform" Dreamweaver of the resolution of the image being inserted?

thanks


thanks
antonio
__________________
thanks
antonio
  #2 (permalink)  
Old May 3rd, 2004, 02:55 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, you can, but it may not be the smartest thing to do.

When you click your image, the Property Inspector will display two boxes for the height and width of the image. Once you change that, the image will change; in Design View you'll see the size of the image change, and in Code View you'll see two attributes appear in the <img> element. Alternatively, you can drag the corners of the image which will have the same effect.

However, this isn't a good solution, as it doesn't really change the size of the image; all it does is change the display size in both Dreamweaver and the browser.
This means that if you have a ridiculously large image, but display it as a small thumb in the browser, your users still need to download the entire image, so the browser can resize it. Performance-wise, this is not really good. Besides, browsers aren't that good is resizing images.

If I were you, I'd optimize the image in Fireworks so it has the correct dimensions for your web app. If you need the higher quality to work with in FW, save a "web copy" for use in your site.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Angel by Massive Attack (Track 1 from the album: Mezzanine) What's This?
  #3 (permalink)  
Old May 4th, 2004, 01:08 PM
amc amc is offline
Authorized User
 
Join Date: Feb 2004
Location: Barcelona, , Spain.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well, thanks, but this is precisely what I am trying to learn. In FW I design an image, let's say:

resolution 300 pixels/inch, pixels 1926 x 1800, size when printed: 6 cm x 6,42 cm. For me the important thing is the resolution (for printing on paper purposes), and then I choose the print size (because I would like the image to take 6 cm x 6.42 cm)

When inserting the image in DW it takes 1926 x 1800 pixels, but it is huge , enormous, such as 50 cm wide, or so.... mmmmm, I suspect that it is bigger in a ratio 300/72 (resolution desired , 300 against the default resolution, 72), but....... I don't know, and I would like to know how FW and DW works, in order to do the proper calculations at design time and not consuming too much disk space.,..


thanks


thanks
antonio
  #4 (permalink)  
Old May 4th, 2004, 01:46 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think your assumptions are right; a computer display has a resolution of 72 pixels per inch. So, to make your image appear at more or less the same size as on paper, you'll have to scale it with a 300/72 ration.

In you case, you should resize the image to 462 x 432 to get roughly the same size on a screen.

In Fireworks you can save a copy of your image that has the required web size. This allows you to still work on the original print size image, and just use the lower resolution copy for display in your web site. If you don't save a copy, but use the original and use height and width on the <img> tag, you're still transferring the larger image, and let the browser do the resizing at the client.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Music Of The Mind by Jamiroquai (Track 5 from the album: Emergency On Planet Earth) What's This?
  #5 (permalink)  
Old May 4th, 2004, 05:01 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Y'know something, Imar?

Now that I think of it, there should be a forum for Fireworks so Fireworks users like me have a place to go to for help. I mean, I don't think it's fair that JUST Dreamweaver and Flash are covered here.

Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599


-------------------------
http://community.webshots.com/user/valerian114

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
  #6 (permalink)  
Old May 4th, 2004, 05:07 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Ben,

I don't think a Fireworks forum would even be worth the energy of pressing 'Create Forum' for the Admins. Perhaps an 'All other Macromedia Products' forum would be better (if still probably not used often).

My opinion.

Snib

<><
  #7 (permalink)  
Old May 4th, 2004, 05:36 PM
Authorized User
 
Join Date: Jul 2003
Location: New Milford, NJ, USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to chabrown Send a message via MSN to chabrown
Default

As many of you know, I have a Fireworks book out (Fireworks MX 2004: Zero to Hero).

If anyone has a Fireworks question, please post it to here and I will try and answer it.

In many ways, I consider Fireworks a part of Dreamweaver and generally use them in pretty close connection.



Charles E. Brown
Author - Beginning Dreamweaver MX, Fireworks MX - Zero to Hero
Contributor - Macromedia Studio MX Bible


Similar Threads
Thread Thread Starter Forum Replies Last Post
Book gifs bschormann BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 May 30th, 2007 11:05 AM
How to use animated gifs? worldspawn C# 3 April 17th, 2007 11:54 AM
Hide all Gifs in a document bonekrusher Java Basics 0 August 7th, 2006 08:14 PM
play animated gifs on an access form dartcoach Access 6 June 17th, 2005 04:39 PM
Embedded gifs and forms fixitman Access 4 October 16th, 2003 12:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.