• Hi Guys,

    The plugin works fine, except for two things.

    1) The annoing message about the .htaccess
    2) ?Its possible to exclude a few images of the compression process?
    The images of my store have important text, but with the compression the text looks bad.

    Thks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, my friends,

    I am very glad that the plugin works for you!

    1) This probably happens when you update your htaccess file manually, right?

    Indeed we know this is a bit annoying, but we have found it very crucial to be able to inform users in all other cases, when the htacess file has not been able to be properly updated. The reason is that what the plugin does is really important and one small mis-calculation can make all images disappear from a website.

    What’s more, it is not possible to detect all kinds of manual edits to the htaccess files and ensure that our debugging messages are actually always correct. Even the plugin itself simply wraps the code bit that it inserts in the htaccess file with special comments and then it detects these comments. (Actually this is what the WordPress core does as well, when it automatically edits the htaccess file in order to support pretty permalinks.)

    If it is not too much trouble, you could do the same and add the same comments manually like this:

    # BEGIN Adaptive Images
    #=======================
    
    <IfModule mod_rewrite.c>
    
        RewriteEngine On
    
        # Watched directories
        RewriteCond %{REQUEST_URI} /wp-content/uploads [OR]
        RewriteCond %{REQUEST_URI} /wp-content/themes
    
        # Redirect images through the adaptive images script
        RewriteRule \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php [L]
    
    </IfModule>
    
    # END Adaptive Images

    2. There is no automatic way to exclude images from being handled by the plugin, but there is a manual way. You can add the suffix ?debug=original at the end of the image url and then the plugin will always serve the original size of that image. Hope this helps!

    Let me know if there is anything else I can do for you.

    Cheers,
    Takis

    Thread Starter algvictor

    (@algvictor)

    Hi Guys,

    thks for your support!

    1. .htaccess, I understood that is a very important part to inform everyone about the status of the redirection in htacces-file, but maybe the solution its not read or check continously the info of the .htaccess, maybe adding a option “Dont show again this message” will be enaf.

    I added the text to my .htaccess in the same orden without changes, but the message continues showing. (if you wanna see my .htaccess, i can send it)

    2. ?debug=original , This option works fine! for every image than i added mannualy for example this one:

    <img src="domain.co,/MyImage.jpg?debug=original” />

    But in this process i discovery a new issue that i have, How i can do the same process to exclude the featured images on everypage? because with this images i cant add
    ?debug=original

    Thks again

    Att: Victor López

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, Victor,

    1. You are right this should be the way to go. Up to now we had classified it as a too important message to dismiss. But we will reconsider in the future.

    Feel free to send us your htaccess file so that we can take a look and see why you keep seeing the message!

    2. I am not sure I understood the question totally. I guess what you are trying to achieve has to be addressed inside the theme. Go to the PHP file where the featured image is output in HTML and add the ?debug=original dynamically there.

    Did I get this right?

    Cheers,
    Takis

    Thread Starter algvictor

    (@algvictor)

    Ok,
    1) this is my .htaccess https://goo.gl/1d74HR
    (is the original without your suggestion, but with this info the plugin its wordking)

    2) When i create a new WordPress page i need choosee a feature image

    If i need to show the original image, what changes are need it?

    thks

    Plugin Author Takis Bouyouris

    (@nevma)

    Hello, again,

    1) The htaccess file seems OK. I cannot really understand why the message won’t go away without debugging it from the inside. Sorry about that.

    2) If you want all your featured images to have the ?debug=original then you will have to put this manually in your theme in the place where the featured image is printed as HTML. You cannot do this from the WordPress administration. You will have to edit your theme’s files. (Also, if you have a ready-made theme, then you should probably do this in a child theme, so that you will not mess with the original theme.)

    Cheers,
    Takis

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude a few images of the compression’ is closed to new replies.