12 Replies Latest reply on May 8, 2010 12:21 PM by Nancy OShea

    Image re-naming issue

    skipisley

      I wanted to make a site-wide image change.  I made a smaller image than the previous one and labeled it the same as the original image.  I uploaded it to my DW folder, "put" it and for some reason it's a mess now.  It appears that it reatined the size dimensions of the old image.  I thought the new one would replace the old one and that would be it.  Is there a better way to do this?  This particular image is on my site hundreds of times, so I don't wnt to have to change it one by one.

        • 1. Re: Image re-naming issue
          JulesN Level 2

          When you first place the image, the dimensions of that image automatically get set into the coding.  What you need to do is use the Edit>Find and Replace and do a sitewide change in the code.  Highlight the code first then hit Edit>Find and replace.

           

          IE:<img src="images/001.JPG" width="300" height="225" alt="whatever" />

           

          to: <img src="images/001.JPG" width="10" height="20" alt="whatever" />

           

          Just replace the dimensions with the proper dimensions of your image, and voila!

           

          Remember to choose in the drop down menu: Find in: "Entire current local site"

          • 2. Re: Image re-naming issue
            Nancy OShea Adobe Community Professional & MVP

            When you change an image outside DW, Right click on the image in Design View > Reset Size.  DW will adjust the height and width dimensions in your code.

             

            As Jules said, you'll need to do a Find & Replace > Entire Local Site > Source Code to fix the dimensions on other pages that reference that new image.

             

            Nancy O.
            Alt-Web Design & Publishing
            Web | Graphics | Print | Media  Specialists
            http://alt-web.com/
            http://twitter.com/altweb
            http://alt-web.blogspot.com

            • 3. Re: Image re-naming issue
              JulesN Level 2

              Thank you Nancy, for that "reset size" tip.  Can't believe I've been a DW user for 10 years or so and I'm still always learning new stuff! 

              • 4. Re: Image re-naming issue
                skipisley Level 1

                Thanks to both of you...very helpful.  Here's another question that maybe you would know. I was told that

                there was a code I could paste into my website that would prohinit people from right clicking and downl

                oading mp3's from my site.  I have a ton of 30 second mp3 samples and I want to prevent right-clicking.

                Do you know the code for that?  If so, exactly where do I paste it?

                • 5. Re: Image re-naming issue
                  JulesN Level 2

                  What circumstance would a person wish to download "30 second" samples of mp3s?  I would be think they would be more inclined to download the whole thing if that was made available.  I think that's why there are so many samples available out there.  If your samples are somewhere in the middle of the song, like the main chorus part, then that would probably do the trick instead of adding any extraneous code.  IMO 

                  • 6. Re: Image re-naming issue
                    skipisley Level 1

                    Actually it's pretty simple...there are websites that troll the Net looking for exactly that....for free ringtones.  I have noticed an

                    uptick of traffic and when checking the metrics, there is an increase from a site

                    , that when I went to check it out is an aggregator that searches for free mp3's....30 seconds samples are pe

                    rfect for ringtones.  Long story short, it is exactly the kind of thing that will redflag me to the record industry, so I need to

                    find a way to prevent it.

                    • 7. Re: Image re-naming issue
                      BCDoherty Level 3

                      The issue isn't preventing right-clicking - which is simply done with javascript - but:

                      1. there are other functions that one might need that are also accessed via a right mouse click
                      2. that will not prevent some one from downloading anything
                      3. there is no (even reasonably safe and sure) way to prevent a site visitor from downloading
                      • 8. Re: Image re-naming issue
                        JulesN Level 2

                        Then what about this?  Create a page with a "captcha" on it.  They have to click through to get to the site pages with the mp3s.  Then, build a robots.txt file telling search engines not to index those pages.

                         

                        OR... create a password protected directory or password protected page that only members can enter.

                        • 9. Re: Image re-naming issue
                          BarryCDoherty

                          Bad boys -- and their robots -- don't obey robots.txt.

                           

                          Using the password-protected files will do it so long as you don't mind your members downloading. And if it's worth the trouble to maintain a members database.

                          • 10. Re: Image re-naming issue
                            bregent Most Valuable Participant

                            Another way to discourage bots is to store the files above site root, and use a form with "captcha" along with a server side script to deliver the files to the user.

                            • 11. Re: Image re-naming issue
                              skipisley Level 1

                              I don't expect to eliminate downloading or right clicking, just discourage it and to show the record labels that I am not being negli

                              gable.  If I make it too easy (which apparently I am doing now) then I set myself up for proble

                              ms.  If I can reduce downloading (right clicking) then I am ok.  My understanding was there was code you could insert into

                              the page that would disable right clicking.  The other stuff suggested like captcha's are a bit over my head (I'm assum

                              ing)  The other issue is that there are already about 3000 mp3 files on the site already, so the simplest

                              fix is going to be the best one.

                              • 12. Re: Image re-naming issue
                                Nancy OShea Adobe Community Professional & MVP

                                1) IMPOSSIBLE. If media files DIDN'T download, end users wouldn't see or hear anything on your web site.  The only way to prevent people from downloading media is to not publish  it.

                                 

                                2) ANNOYING & UNFRIENDLY. Disabling right click interferes with advanced browser tools and other functions that some people need to surf.

                                 

                                3) EASY TO DEFEAT. Turn off JavaScript and it doesn't work.

                                 

                                ...show the record labels that I am not being negligable.  If I make it too easy (which apparently I am doing now) then I set myself up for problems. 

                                 

                                If you don't have written permission from artists/labels to use copyrighted music on your site, you're already in a lot of trouble.

                                 

                                 

                                Nancy O.
                                Alt-Web Design & Publishing
                                Web | Graphics | Print | Media  Specialists
                                http://alt-web.com/
                                http://twitter.com/altweb
                                http://alt-web.blogspot.com