Thread: Image Scaling

Page 4 of 14 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 135
  1. #31
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Image Scaling

    It would be possible to have two unrelated products in different categories with the same name, but one product linked into two categories still has only one product id. So the product id prefix would work, though I still think it's better to alert to conflicts and allow user discretion.

  2. #32
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Scaling

    Quote Originally Posted by gjh42 View Post
    It would be possible to have two unrelated products in different categories with the same name, but one product linked into two categories still has only one product id. So the product id prefix would work, though I still think it's better to alert to conflicts and allow user discretion.
    I agree...
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #33
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Scaling

    So, we are talking about the upload modifier section.

    And we are talking about the renaming part of that.

    So, how about:

    • There is an admin switch to turn renaming on and off.
    • There is an admin selection of the renaming filter.
    • There is a simple ( for a developer ) way of adding new renaming filters
    • As standard there is at the minimum a 'hard rename' renaming filter


    The hard rename would

    • rename to a sanitised version of the product name
    • put everything in lowercase
    • add the product id at the start of the name


    Other renaming filters could do whatever developers wanted to do. Up to them. Their risks.

    If renaming was being used the user would be advised if there was still a naming conflict and be given the chance of supplying an alternative name.

  4. #34
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Scaling

    Of course, renaming is another one where it needs to be considered if we hope to create a retro-active renaming. So, does it need the ability to rename existing images?

    Hmmm, that is possible but slightly scary the potential for disaster is pretty big. Someone adds a dubious filter and then goes for bulk rename and all their images disappear. Not good.

    Perhaps with this and any other bulk changes you need to copy the files and then have an 'accept these changes or rollback' page. That would be a bit tedious because you also need to store all the previous image names for writing back into the database.

  5. #35
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Scaling

    OK. Version 0.2 of the image scaler.

    It does :
    -- image scaling
    -- additional image uploading
    -- variant uploading
    -- admin setting for all kinds of stuff
    -- client side clean-up with an admin switch
    -- admin side clean-up with an admin switch
    -- clean-up just deletes files that haven't been touched for a while
    -- you can set the maximum number of files to be deleted in one go to spread the load around a bit

    It doesn't
    -- categorise the files into directories as Nigel suggested yet. But I have a bit of a plan for the next version
    -- do any of the things that I regard as 'upload modification'. Renaming, size limiting, watermarking and sharpness.

    Install is just a rename of admin and an upload. Just make sure that you are logged in and not about to be logged out. The installer won't play nice if the first page it sees is the login page.

    Uninstall. There is a file to upload in a separate directory in the zip. It is just the same old auto_loader file with an uninstall flag set. It will roll back the database changes and delete the files that were uploaded.

    Only one core file is over-written which is application_bottom.ph which I don't think will cause you any problems. It is not deleted on uninstall but the new version won't cause problems anyway.

    Let me know

    Nick
    Attached Files Attached Files

  6. #36
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Scaling

    Awesome.. something to play with this weekend..

    Quote Originally Posted by niccol View Post
    OK. Version 0.2 of the image scaler.

    It does :
    -- image scaling
    -- additional image uploading
    -- variant uploading
    -- admin setting for all kinds of stuff
    -- client side clean-up with an admin switch
    -- admin side clean-up with an admin switch
    -- clean-up just deletes files that haven't been touched for a while
    -- you can set the maximum number of files to be deleted in one go to spread the load around a bit

    It doesn't
    -- categorise the files into directories as Nigel suggested yet. But I have a bit of a plan for the next version
    -- do any of the things that I regard as 'upload modification'. Renaming, size limiting, watermarking and sharpness.

    Install is just a rename of admin and an upload. Just make sure that you are logged in and not about to be logged out. The installer won't play nice if the first page it sees is the login page.

    Uninstall. There is a file to upload in a separate directory in the zip. It is just the same old auto_loader file with an uninstall flag set. It will roll back the database changes and delete the files that were uploaded.

    Only one core file is over-written which is application_bottom.ph which I don't think will cause you any problems. It is not deleted on uninstall but the new version won't cause problems anyway.

    Let me know

    Nick
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #37
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Scaling

    version 0.3

    just a few display changes. I haven't tested this one so much but it shouldn't need it. If it causes issues then try version 0.2.

    This one just has a nice method of selecting products and lets you hide some of the information if you aren't interested in it.
    Attached Files Attached Files

  8. #38
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Image Scaling

    Quote Originally Posted by niccol View Post
    version 0.3

    just a few display changes. I haven't tested this one so much but it shouldn't need it. If it causes issues then try version 0.2.

    This one just has a nice method of selecting products and lets you hide some of the information if you aren't interested in it.
    is this right no admin folder found it's in the uninstall folder is that right can you check it for me
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  9. #39
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Scaling

    Darn. It is the 'control' folder in that version.

    I'll upload another with the correct naming :-)

    Thanks for pointing it out.
    Attached Files Attached Files

  10. #40
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Image Scaling

    Quote Originally Posted by niccol View Post
    Darn. It is the 'control' folder in that version.

    I'll upload another with the correct naming :-)

    Thanks for pointing it out.
    no prob just didn't want to try it and have a thunderbolt wizz out of my pc
    What ever your doing remember to KISS ( Keep It Simple Stupid )

 

 
Page 4 of 14 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. Image scaling
    By LizzyB in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Aug 2008, 09:51 PM
  2. Scaling image instead of "units in stock?"
    By JHouse in forum General Questions
    Replies: 1
    Last Post: 12 May 2008, 06:48 PM
  3. Header image Scaling issue
    By bgmeanyhd in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Aug 2006, 09:46 PM

Posting Permissions

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