在基于 CodeIgniter 的网站中调整上传照片的大小

发布于 2024-12-29 04:11:28 字数 415 浏览 1 评论 0原文

好吧,这证明是一个谜,所以我绝望地想我会把它扔在那里,看看其他人是否也遇到过类似的事情。我们的(基于 CodeIgniter)页面之一具有照片上传功能。这是愉快地上传到upload/orig并在某处调整大小并放入upload/thumb

我已检查页面代码本身以查找此调整大小的参数,但它们不在文件中。我已经检查了所有控制器文件,尽管有几个调整大小函数正在进行,但我更改了它们的目录名称以测试它们是否确实是解决原始问题的正确函数...它们不是!然后,我搜索了所有文件以查找对大小、函数名称、resize 作为搜索项和 file_up 作为搜索项的引用...但什么也没有。

调整大小为 602 x 340px

有人知道我可能错过了什么吗?我真的不想调整这些照片的大小。

OK so this is proving a mystery so I thought in desperation I would throw it out there to see if anyone else has had a similar thing going on. One of our (CodeIgniter-based) pages has a photo upload function. This is merrily uploaded to upload/orig and resized somewhere and put in upload/thumb.

I have checked the page code itself to find the parameters for this resize and they are not in the file. I have checked ALL controller files and although there are a couple of resize functions going on I have changed their directory names to test whether they are indeed the right functions for the original problem... they are not! I have then searched all files for references to the size, the function name, resize as a search-term and file_up as a search term... and nothing.

The resize is 602 x 340px

Does anyone have any idea what I could have missed? I really don't want these photos being resized.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以笙箫默 2025-01-05 04:11:28

乔,您只需正确跟踪您的代码即可。
我将识别正在提交的表单,然后通过控制器和处理上传的方法进行工作。

通常,您的大小调整会在上传时发生(在大多数情况下)。

您的问题确实不是我们可以回答的问题,因为我们看不到您的代码。我们只能给您模糊的答案,这些答案可能相关也可能不相关。

Joe, you are simply going to have to properly trace your code.
I would identify the FORM that is being submitted, then work through the controller and the method that handles the upload.

Typically your resize happens upon upload (in most cases).

Your question is really not something we could answer, as we don't see your code. We can only give you vague answers that may or not be relevant.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文