Resize [Deleted]

@AndyB I like this plugin as so many other's from you. I would like to suggest that images can be enlarged. I have a Gallery that often gets very small images at 480x and I know that re-sizing up, reduces the image quality... But it improves the experience so much.
Such small pictures are just not good to look at.

Take a look at my example.

Small Akranes mars 1986 - Myndhöfundur Árni S. Árnason.jpg

Large Akranes mars 1986 - Myndhöfundur Árni S. Árnason.jpg
 
Are you sure that resizing and rotating work with version 2.3? On my local server with a clean forum, the addon seems to be altering the files. Afterward, I'm unable to add full attachments to posts.
 
Here some tests:

Upload a picture to post 77, full attach, saved as

21-8c83dda6afcd944fa1c01293b613d49e.jpg
11kb

xf_attachment
id 93
data_id 21
content 77
date 1723391003
rest 0, 0, 0

xf_attachment_data
data_id 21
hash ee2381568e63234ce7dc82c73cc1e493
key 8c83dda6afcd944fa1c01293b613d49e
attach_count 1

After rotating 180° there is shown the filename instead the picture:

Code:
<img src="http://localhost/index.php?attachments/2014b-jpg.93/" data-url="" class="bbImage" data-zoom-target="1" style="" alt="2014b.jpg" title="2014b.jpg" width="1000" height="800" loading="lazy">

New file
21-8986cc92f0b37860de6b982c179319dd.jpg 33kb

attachment
xf_attachment changed view_count 0=> 1
id 93
data_id 21
content 77
date 1723391003
rest 0, 0, 1


xf_attachment_data
data_id 21
hash ee2381568e63234ce7dc82c73cc1e493 > 8986cc92f0b37860de6b982c179319dd
key 8c83dda6afcd944fa1c01293b613d49e = 8c83dda6afcd944fa1c01293b613d49e
attach_count 1

Now i manually change the key in xf_attachment_data to the 8986cc92f0b37860de6b982c179319dd
from new filename 21-8986cc92f0b37860de6b982c179319dd.jpg

Back to post; everything is nice, the picture is shown rotated.


Conclusion:
Your addon does not change the field key after rotating on my system.
The old picture is not deleted.
The file size increases by 300%
 
Last edited:
Just for fun i did it again!
The file size increase from 11 to 33 to 48kb now.
The second pictures is deleted.
The posts shows the file name only.
After updating the field key to the new file name the picture is back.

Checking file perms for both files xx- xx- xx-

Checking data/attachments: two files, first and third, second from first rotating deleted
Checking internal_data/attachments, there is one file starting with 21-

21-86ebcb140629aecbf2d7034dfa63d0ef.data
fits to last filename
21-86ebcb140629aecbf2d7034dfa63d0ef.jpg


Your problem?
XF 2.3 problem?
My problem?
 
Back
Top Bottom