Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › Watermarked Max Preview Dimension only scales horizontally
- This topic has 13 replies, 3 voices, and was last updated 4 years, 10 months ago by Sterner.
-
AuthorPosts
-
December 18, 2019 at 9:17 am #15262SternerMember
The info tekst for the field states:
“This field enables you to set the maximum desired width or height of the watermarked version of your photos in this gallery depending on whether the photo is a portrait or landscape.
For instance if your photo is a landscape style image then the value you enter here will represent the maximum desired width of the preview image.
Conversely, if your photo is a portrait style image then the value you enter here will represent the maximum desired height of the preview image.
The plugin will automatically scale the watermarked photo’s other dimension to the appropriate value based on the value entered in this field.”
But it is always the horizontal dimensions that relates to the number of px set in this field.
Example:
– Watermarked Max Preview Dimension is set to 600 px.
– Horizontal oriented picture now is 600 px x Y px.
– Vertical oriented pictues now is 600 px x Y px. (And not Y px x 600 px. )
December 19, 2019 at 7:04 am #80196adminKeymasterWhat is the original dimension of this image in question?
December 25, 2019 at 1:24 pm #80197SternerMemberI am just using test photos until it all works, so I used photos already in my WordPress Media Library. They are all 2048 px on the longest side. For eksample 2048 by 1363 pixels when horizontal and opposite when vertical (1363 by 2048).
I also see, the my watermark is reduced in size on the horizontal images and correct in size on the vertical. That seems odd?
My watermark picture is a 500 x 500 px png with no background.
See: gertsterner.com/photogallery/
The plugin also did not make a page for album, even though I made an album. So maybe the plugin just do not work at my site?
Kind regards
December 26, 2019 at 11:56 pm #80198adminKeymasterokay so the watermarked image is going to be a smaller image. This is to make sure the original image is protected (so a user cannot copy or screenshot the image from the browser). When it reduces the size, it will keep the aspect ratio so the image doesn’t look squishy.
I just checked your gallery and it looks fine to me. I can go to the gallery, browse the images and add it to the cart then do a checkout. That is how it is suppose to work. The albums are not auto-created. The albums are optional that you can create (if you need to). Did you try to create an album from the Albums menu?
December 28, 2019 at 9:52 pm #80199SternerMemberI get it.,The plugin merges the watermark picture first, and then reduce the image size. I will make a larger watermark picture in the future, when I start using the plugin for real.
But, as I wrote in my first post, the plugin only scales the image according to the horizontal pixel width, both on horizontal and vertical pictures, even though the manual says something else. If I am to read between the lines of your answer, then this will not be fixed, and I just have to live with it. Is that correct?
Regarding album. In the manual
It says: “When you create a new Album, a page will be automatically created for that album. However, you can also manually insert the album in any WordPress post/page yourself.”
I did not get a new page, so I made one my self. I have switched the names of Gallery and Album, because I think a Gallery has Albums, and not the other way round. So my “Album” page is now:
gertsterner.com/photogallery/
Kind regards
December 29, 2019 at 9:11 am #80200PeterMemberthe plugin only scales the image according to the horizontal pixel width, both on horizontal and vertical pictures, even though the manual says something else
Not correct. I just tried another test and here’s the behaviour I see.
I created a gallery and uploaded 2 photos with the following dimensions:
photo 1: 3800 x 1600
photo 2: 2250 x 3000
So photo 1 is a “landscape” photo and photo 2 is a “portrait” photo.
I then set the “Watermarked Max Preview Dimension (px)” to 500.
After saving the gallery and letting the plugin finish its processing I then viewed the gallery on the front end and the following were the sizes of the watermarked photo inside the photo details page:
photo 1 (watermark): 500 x 210
photo 2 (watermark): 375 x 500
Note how the scaling was done such that the longest length was scaled down to 500px for the landscape and portrait photo?
So are you saying that you do not see this behaviour?
December 29, 2019 at 9:19 am #80201PeterMemberI also just looked at your site and I can see the following error in the browser developer console:
gertsterner.com/wp-content/uploads/wp_photo_seller/4/watermark_GST8608@2x.jpg 404 (Not Found) retina.js?ver=5.3.2
Looks you have some plugin called “retina” which appears to be throwing this error.
Have you tried doing a plugin and theme conflict test?
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
December 31, 2019 at 3:03 am #80202SternerMemberI tried again, with all, but the Photo Seller Plugin, deactivated. I also switched to a standard WordPress theme called “Twenty Seventeen”. But the behaviour was the same.
Then I deleted all galleries and made new ones, with pictures not used before. Still no progress. Only weird thing is, that I set the watermarked size to 800 pixels. Then some of the pictures got to 600 vertically and others 800. The horizontal pixels was 901 so it was not constrained to 800.
Then I made new galleries again, with pictures in full size at pixels 7360 x 4912 vertical / 4912 x 7360 horizontal. Still no progress.
Then again new galleries, now setting the watermarked picture width lower than the vertical pixels used when presenting it at the WordPress site, namely 526 pixels. I chose 500 pixels, just like you did. Still no progress.
Last weird thing I see is, that WordPress is cropping all my pictures to 2560 vertically. I thought it was to do with the screen I used, with was 2560 x 1440 but using the other screen at 5120 x 2880 did not matter.
Last thing I noticed was, that even though a gallery shows up on the either the gallery page or an album page, then I could not open the gallery. I first had to go backend to the Photo Seller Plugin at the gallery setup and ask to show that gallery. Then it would also work on the other pages.
The web hotel provider shows no errors in the installed WordPress. Neither do WordPress. But perhaps I have to delete this WordPress installation and make a fresh one. I don’t know.
Anyway. Thanks for trying to help.
Kind regards
December 31, 2019 at 3:32 am #80203SternerMemberI found an article about WordPress 5.3 now downsize images.
https://darkog.com/blog/how-to-disable-wordpress-5-3-image-downscaling-feature/
December 31, 2019 at 4:08 am #80204SternerMemberIf I use the feature of using a text as a watermark, instead of a picture, the resizing works correctly. I am sorry I did not test this before. I would like to use a picture though. Could you check the code to se if that could be fixed?
Kind regards
January 2, 2020 at 11:21 pm #80205PeterMemberHi @Sterner,
Ok I will double check the image watermark case to see if I can reproduce the same behaviour as you are seeing. Will let you know.
January 6, 2020 at 11:28 am #80206PeterMemberHi again,
I was able to reproduce your issue and hence identify the bug which occurs for the case where an image is used for the watermark instead of the standard text watermark.
A fix for this will be available soon.
January 7, 2020 at 12:07 am #80207adminKeymasterWe have sent you an updated copy of the plugin to use.
January 7, 2020 at 2:39 pm #80208SternerMemberIt works fine now.
Thanks!
Kind regards
-
AuthorPosts
- You must be logged in to reply to this topic.